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
- ObjectCloneHelper.cs
- DateTimeOffset.cs
- XmlHierarchicalEnumerable.cs
- EdgeModeValidation.cs
- MatrixUtil.cs
- OdbcCommand.cs
- Listbox.cs
- FormsAuthenticationModule.cs
- HandlerFactoryCache.cs
- PropertyDescriptor.cs
- ChunkedMemoryStream.cs
- QilExpression.cs
- CatalogZoneBase.cs
- ThreadSafeList.cs
- HwndTarget.cs
- FixedSOMFixedBlock.cs
- ListBindingConverter.cs
- ToolStripDesigner.cs
- ListCollectionView.cs
- HttpCachePolicyWrapper.cs
- OleDbException.cs
- StylusPlugInCollection.cs
- MetadataAssemblyHelper.cs
- SafeFileMappingHandle.cs
- EntityParameter.cs
- BuildProviderCollection.cs
- PassportAuthenticationEventArgs.cs
- PrePrepareMethodAttribute.cs
- ClientEventManager.cs
- FileDialog_Vista_Interop.cs
- XmlDownloadManager.cs
- _ListenerResponseStream.cs
- DataPointer.cs
- ReadOnlyCollectionBase.cs
- FileVersionInfo.cs
- DataListItemEventArgs.cs
- ExternalException.cs
- IntSecurity.cs
- RijndaelManagedTransform.cs
- NullableBoolConverter.cs
- NetworkCredential.cs
- PackageFilter.cs
- DynamicActivityXamlReader.cs
- EdgeProfileValidation.cs
- FieldValue.cs
- SqlConnectionManager.cs
- MethodAccessException.cs
- HMACSHA256.cs
- ProcessModelSection.cs
- IERequestCache.cs
- DBCommandBuilder.cs
- NumberAction.cs
- HorizontalAlignConverter.cs
- TreeNode.cs
- BitmapSizeOptions.cs
- TextContainerChangedEventArgs.cs
- TdsEnums.cs
- ResourceType.cs
- DependencyObjectCodeDomSerializer.cs
- Scanner.cs
- DefaultBindingPropertyAttribute.cs
- Automation.cs
- WindowsClaimSet.cs
- MetadataImporter.cs
- dbenumerator.cs
- EllipseGeometry.cs
- PropertyGrid.cs
- dtdvalidator.cs
- TiffBitmapDecoder.cs
- Underline.cs
- XsltContext.cs
- FacetChecker.cs
- TreeNodeMouseHoverEvent.cs
- DataList.cs
- Relationship.cs
- DependencyProperty.cs
- RemoteWebConfigurationHost.cs
- AnnotationResourceCollection.cs
- FontSizeConverter.cs
- ProfileInfo.cs
- IBuiltInEvidence.cs
- LoginUtil.cs
- SynchronizationContext.cs
- DLinqColumnProvider.cs
- Timer.cs
- GridViewCellAutomationPeer.cs
- DesignerCategoryAttribute.cs
- DescendantBaseQuery.cs
- HttpCapabilitiesBase.cs
- XmlBinaryReader.cs
- BamlCollectionHolder.cs
- SuspendDesigner.cs
- ShapingEngine.cs
- DispatcherExceptionFilterEventArgs.cs
- X509Extension.cs
- CommandHelpers.cs
- RouteValueExpressionBuilder.cs
- GridViewHeaderRowPresenter.cs
- MobileControlsSection.cs
- XmlElementAttributes.cs