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
- TreeViewCancelEvent.cs
- HtmlControl.cs
- CodeRegionDirective.cs
- XmlSerializerSection.cs
- FrameworkContentElement.cs
- UriScheme.cs
- XmlReflectionMember.cs
- Privilege.cs
- SqlFlattener.cs
- TrackingExtract.cs
- FrameworkPropertyMetadata.cs
- ToolStripContainer.cs
- DiagnosticStrings.cs
- TypeDelegator.cs
- CompareValidator.cs
- ContainerSelectorGlyph.cs
- RawStylusActions.cs
- TrackingLocation.cs
- DeviceContexts.cs
- ProxyHelper.cs
- PeerTransportElement.cs
- Point.cs
- MobileUITypeEditor.cs
- Schedule.cs
- TemplateBindingExtension.cs
- ContextBase.cs
- Context.cs
- IriParsingElement.cs
- ActivityDesignerResources.cs
- ProviderConnectionPointCollection.cs
- CommandDesigner.cs
- SortKey.cs
- clipboard.cs
- LoginView.cs
- MergeFailedEvent.cs
- AsyncParams.cs
- ClientApiGenerator.cs
- MD5CryptoServiceProvider.cs
- InputLanguageSource.cs
- ToolStripSettings.cs
- FusionWrap.cs
- CompilationUtil.cs
- CallbackValidator.cs
- ApplicationServiceManager.cs
- DispatcherEventArgs.cs
- TimeSpanValidator.cs
- ApplicationServiceManager.cs
- TextServicesProperty.cs
- HostingEnvironment.cs
- SynchronizedDispatch.cs
- ExecutedRoutedEventArgs.cs
- HtmlSelect.cs
- Typography.cs
- DataGridDetailsPresenter.cs
- XmlParser.cs
- EventLogException.cs
- Msec.cs
- IInstanceContextProvider.cs
- MaterialCollection.cs
- NeutralResourcesLanguageAttribute.cs
- WindowsRichEdit.cs
- IconConverter.cs
- PieceNameHelper.cs
- VBCodeProvider.cs
- MeasureItemEvent.cs
- DynamicDataManager.cs
- InvariantComparer.cs
- HttpListenerPrefixCollection.cs
- DisplayInformation.cs
- IisTraceListener.cs
- DomainConstraint.cs
- connectionpool.cs
- EntityTypeEmitter.cs
- Match.cs
- OleDbRowUpdatedEvent.cs
- ExpressionCopier.cs
- Variant.cs
- TableCellsCollectionEditor.cs
- ProviderSettings.cs
- EditingCoordinator.cs
- FactoryMaker.cs
- MobileControlBuilder.cs
- HttpListenerRequest.cs
- TemplateContent.cs
- DisposableCollectionWrapper.cs
- CharacterMetrics.cs
- XmlComment.cs
- SerialReceived.cs
- EmbeddedMailObjectsCollection.cs
- ImportFileRequest.cs
- QuaternionValueSerializer.cs
- ExpressionStringBuilder.cs
- DataSourceControl.cs
- NameHandler.cs
- SharedPersonalizationStateInfo.cs
- GifBitmapDecoder.cs
- ProxyWebPartConnectionCollection.cs
- EncryptRequest.cs
- XamlReaderConstants.cs
- WebConfigurationFileMap.cs