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
- ClientFactory.cs
- DataSourceView.cs
- Privilege.cs
- MsmqAppDomainProtocolHandler.cs
- ISSmlParser.cs
- FeatureSupport.cs
- SystemColors.cs
- RunClient.cs
- ExtractorMetadata.cs
- SuppressedPackageProperties.cs
- OracleConnection.cs
- NetworkStream.cs
- AmbientValueAttribute.cs
- RawStylusInputCustomDataList.cs
- CapiSafeHandles.cs
- TimeStampChecker.cs
- BuildProviderAppliesToAttribute.cs
- LOSFormatter.cs
- BypassElementCollection.cs
- BindToObject.cs
- WhitespaceRuleLookup.cs
- ExeConfigurationFileMap.cs
- ComponentEditorPage.cs
- WhileDesigner.cs
- ThreadSafeList.cs
- Sentence.cs
- ProcessThread.cs
- DataPointer.cs
- NameValuePair.cs
- OleDbTransaction.cs
- Grid.cs
- TripleDES.cs
- MembershipValidatePasswordEventArgs.cs
- CompleteWizardStep.cs
- PolygonHotSpot.cs
- ModelPerspective.cs
- DispatcherExceptionEventArgs.cs
- NotifyCollectionChangedEventArgs.cs
- DbConnectionStringBuilder.cs
- DataObject.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ParameterInfo.cs
- QueryReaderSettings.cs
- HttpWrapper.cs
- JavaScriptSerializer.cs
- NavigationProgressEventArgs.cs
- PointCollection.cs
- WorkflowWebService.cs
- BitStream.cs
- ImmutableObjectAttribute.cs
- _IPv6Address.cs
- CreateUserWizardStep.cs
- WebBrowser.cs
- BitmapCodecInfoInternal.cs
- DictionaryManager.cs
- NumberAction.cs
- SplashScreen.cs
- UpdateManifestForBrowserApplication.cs
- ProcessInputEventArgs.cs
- PointCollection.cs
- XPathAncestorIterator.cs
- ComboBox.cs
- StrokeNodeData.cs
- WebPartConnection.cs
- DataSet.cs
- DataViewManagerListItemTypeDescriptor.cs
- SafeHandles.cs
- DbDataSourceEnumerator.cs
- __Filters.cs
- CommandLibraryHelper.cs
- ActiveXHost.cs
- DocumentApplicationJournalEntry.cs
- TrustManagerPromptUI.cs
- ISFTagAndGuidCache.cs
- XamlStyleSerializer.cs
- StringUtil.cs
- WebSysDefaultValueAttribute.cs
- SafeEventHandle.cs
- SiteMapNodeItemEventArgs.cs
- MenuCommand.cs
- PipelineModuleStepContainer.cs
- SqlBuilder.cs
- VersionUtil.cs
- MemoryStream.cs
- FlowNode.cs
- SqlMetaData.cs
- AssociationSetMetadata.cs
- DataServiceExpressionVisitor.cs
- EventEntry.cs
- TextServicesLoader.cs
- SequentialActivityDesigner.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- MailAddressCollection.cs
- Base64Encoder.cs
- MenuItemStyleCollection.cs
- DynamicFilter.cs
- ConfigXmlComment.cs
- TextModifierScope.cs
- Debug.cs
- PersonalizationProvider.cs