Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / ComIntegration / ChannelOptions.cs / 1 / ChannelOptions.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.ComIntegration { using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.ServiceModel; using System.ServiceModel.Channels; internal class ChannelOptions:IChannelOptions, IDisposable { protected IProvideChannelBuilderSettings channelBuilderSettings; internal ChannelOptions (IProvideChannelBuilderSettings channelBuilderSettings) { this.channelBuilderSettings = channelBuilderSettings; } internal static ComProxy Create (IntPtr outer, IProvideChannelBuilderSettings channelBuilderSettings) { if (channelBuilderSettings == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError (new InvalidOperationException (SR.GetString (SR.CannotCreateChannelOption))); ChannelOptions channelOptions = null; ComProxy proxy = null; try { channelOptions = new ChannelOptions (channelBuilderSettings) ; proxy = ComProxy.Create (outer, channelOptions, channelOptions); return proxy; } finally { if (proxy == null) { if (channelOptions != null) ((IDisposable)channelOptions).Dispose (); } } } void IDisposable.Dispose () { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableParaClient.cs
- InvalidateEvent.cs
- ElementProxy.cs
- HGlobalSafeHandle.cs
- TimeoutException.cs
- ParallelTimeline.cs
- DependencyPropertyKind.cs
- UnsafeNativeMethods.cs
- FormViewInsertedEventArgs.cs
- HttpConfigurationContext.cs
- ConvertTextFrag.cs
- DbConnectionPoolCounters.cs
- MemoryFailPoint.cs
- ProxyWebPartConnectionCollection.cs
- ScopelessEnumAttribute.cs
- PackageStore.cs
- ValidationEventArgs.cs
- SafeCertificateContext.cs
- DBCommand.cs
- NumericUpDownAccelerationCollection.cs
- IsolatedStorageException.cs
- RegionInfo.cs
- EmbeddedMailObjectsCollection.cs
- RangeValidator.cs
- PlanCompiler.cs
- CalendarDay.cs
- MutexSecurity.cs
- ThreadStaticAttribute.cs
- XPathNode.cs
- PaintEvent.cs
- SoapSchemaMember.cs
- MediaPlayerState.cs
- DataPointer.cs
- WebServiceErrorEvent.cs
- SmiGettersStream.cs
- VerticalAlignConverter.cs
- XPathExpr.cs
- SendKeys.cs
- BooleanFunctions.cs
- CookielessHelper.cs
- SignedXmlDebugLog.cs
- TraceData.cs
- FixedTextContainer.cs
- DbParameterCollectionHelper.cs
- NetworkAddressChange.cs
- FieldTemplateUserControl.cs
- ColumnMapVisitor.cs
- ApplicationDirectory.cs
- SystemResourceHost.cs
- EmptyStringExpandableObjectConverter.cs
- ChangeDirector.cs
- SystemBrushes.cs
- RotateTransform3D.cs
- TreeViewDataItemAutomationPeer.cs
- EraserBehavior.cs
- RangeBase.cs
- Span.cs
- StyleModeStack.cs
- IMembershipProvider.cs
- DeploymentSection.cs
- SpoolingTaskBase.cs
- URLIdentityPermission.cs
- SystemIPGlobalProperties.cs
- Animatable.cs
- Rect3DValueSerializer.cs
- SymmetricAlgorithm.cs
- SoapHeader.cs
- TableHeaderCell.cs
- XmlEntity.cs
- ContactManager.cs
- ListViewItemEventArgs.cs
- GPRECTF.cs
- BitmapEffectInput.cs
- EntityClientCacheKey.cs
- SubpageParagraph.cs
- WebHttpDispatchOperationSelectorData.cs
- CaseCqlBlock.cs
- NavigationProgressEventArgs.cs
- LineBreak.cs
- XmlQualifiedName.cs
- EntityRecordInfo.cs
- MetadataHelper.cs
- BulletedList.cs
- _ListenerAsyncResult.cs
- HeaderedContentControl.cs
- AVElementHelper.cs
- CharacterString.cs
- LogReserveAndAppendState.cs
- WebBrowserBase.cs
- ChangeConflicts.cs
- ConsoleCancelEventArgs.cs
- HandlerMappingMemo.cs
- OutputCacheProfile.cs
- DecoderFallback.cs
- ToolStripScrollButton.cs
- _LocalDataStoreMgr.cs
- AdornerHitTestResult.cs
- ObservableCollection.cs
- Geometry3D.cs
- ReflectionPermission.cs