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
- HttpRequestContext.cs
- ObjectStorage.cs
- AssociationType.cs
- DesignerSerializationOptionsAttribute.cs
- StylusPlugInCollection.cs
- Helper.cs
- ListItem.cs
- FlowDocument.cs
- OletxDependentTransaction.cs
- Container.cs
- SubpageParagraph.cs
- FormsIdentity.cs
- FormClosingEvent.cs
- SpeechSeg.cs
- CultureSpecificStringDictionary.cs
- ItemsPanelTemplate.cs
- AssemblyBuilder.cs
- EmbeddedMailObjectsCollection.cs
- TableLayoutPanelResizeGlyph.cs
- DataMemberConverter.cs
- SystemKeyConverter.cs
- ParameterElement.cs
- RichTextBoxConstants.cs
- SecurityUtils.cs
- DetailsViewCommandEventArgs.cs
- CurrentChangingEventManager.cs
- DrawingImage.cs
- EntityViewGenerator.cs
- CheckBox.cs
- LinearKeyFrames.cs
- RemotingServices.cs
- XmlHierarchicalEnumerable.cs
- IdnMapping.cs
- Function.cs
- HostingEnvironmentException.cs
- PagesChangedEventArgs.cs
- Propagator.ExtentPlaceholderCreator.cs
- DoubleLinkList.cs
- RoutedEventHandlerInfo.cs
- MissingManifestResourceException.cs
- DistributedTransactionPermission.cs
- ExecutionEngineException.cs
- ArrayList.cs
- ListenerHandler.cs
- ObjectNotFoundException.cs
- WebPartCollection.cs
- EntityDataSourceSelectingEventArgs.cs
- DataView.cs
- ResolvedKeyFrameEntry.cs
- DynamicDataExtensions.cs
- AssemblyInfo.cs
- ModelPerspective.cs
- QilScopedVisitor.cs
- PageVisual.cs
- Events.cs
- SecurityTokenValidationException.cs
- Errors.cs
- CanonicalFontFamilyReference.cs
- ParameterElementCollection.cs
- InheritanceAttribute.cs
- DataGridHeaderBorder.cs
- ListChangedEventArgs.cs
- CodeEntryPointMethod.cs
- AvTrace.cs
- ToolboxDataAttribute.cs
- XPathQilFactory.cs
- CheckBoxRenderer.cs
- LocalFileSettingsProvider.cs
- TypeDependencyAttribute.cs
- DefaultMemberAttribute.cs
- SchemaElementLookUpTable.cs
- EntityParameter.cs
- WebChannelFactory.cs
- XPathNodeHelper.cs
- Stroke.cs
- PerspectiveCamera.cs
- PagedDataSource.cs
- SqlServer2KCompatibilityCheck.cs
- Bidi.cs
- Descriptor.cs
- CopyNamespacesAction.cs
- DynamicILGenerator.cs
- CacheAxisQuery.cs
- DispatcherHooks.cs
- IPHostEntry.cs
- _SslSessionsCache.cs
- FlowLayoutSettings.cs
- RIPEMD160.cs
- Closure.cs
- AppSettingsExpressionBuilder.cs
- Executor.cs
- RequestBringIntoViewEventArgs.cs
- BoundPropertyEntry.cs
- ExpressionPrinter.cs
- SelectionRangeConverter.cs
- LineBreakRecord.cs
- QilReplaceVisitor.cs
- NativeMethods.cs
- ObjectDisposedException.cs
- AutoResizedEvent.cs