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
- ClientBuildManagerCallback.cs
- CharacterBufferReference.cs
- OdbcCommandBuilder.cs
- MenuItemCollectionEditorDialog.cs
- NavigatorInput.cs
- FixedSOMTableCell.cs
- UidManager.cs
- WorkflowControlClient.cs
- ObsoleteAttribute.cs
- ActivityExecutionContext.cs
- TextBox.cs
- Operator.cs
- UpdateTracker.cs
- ImpersonationContext.cs
- BitmapEffectvisualstate.cs
- MdiWindowListStrip.cs
- DispatcherHooks.cs
- SourceElementsCollection.cs
- oledbmetadatacolumnnames.cs
- SchemaCreator.cs
- RichTextBoxAutomationPeer.cs
- ColumnMapVisitor.cs
- FastEncoderWindow.cs
- ForwardPositionQuery.cs
- CheckableControlBaseAdapter.cs
- XmlNamespaceDeclarationsAttribute.cs
- XPathParser.cs
- WebPartUserCapability.cs
- ComplexBindingPropertiesAttribute.cs
- XhtmlBasicValidatorAdapter.cs
- WsiProfilesElementCollection.cs
- MiniModule.cs
- XmlUtil.cs
- Identity.cs
- ManifestBasedResourceGroveler.cs
- SelectionListComponentEditor.cs
- ObjectItemLoadingSessionData.cs
- ExpressionPrefixAttribute.cs
- TrackingCondition.cs
- oledbconnectionstring.cs
- NativeRecognizer.cs
- RoleService.cs
- HMACSHA384.cs
- ValidationVisibilityAttribute.cs
- HandledMouseEvent.cs
- ConditionalAttribute.cs
- ToggleProviderWrapper.cs
- UrlMappingCollection.cs
- CatalogPartChrome.cs
- WinFormsSpinner.cs
- ElapsedEventArgs.cs
- HandlerFactoryCache.cs
- _HeaderInfo.cs
- Graph.cs
- ClientRuntimeConfig.cs
- HtmlEncodedRawTextWriter.cs
- CroppedBitmap.cs
- MouseGestureConverter.cs
- PrintDialogException.cs
- StructuredTypeInfo.cs
- DataBinder.cs
- PhysicalFontFamily.cs
- SqlBulkCopyColumnMapping.cs
- DeobfuscatingStream.cs
- WindowsGrip.cs
- HashHelper.cs
- XmlWriter.cs
- ButtonStandardAdapter.cs
- _NestedMultipleAsyncResult.cs
- ContainerParagraph.cs
- BaseCodePageEncoding.cs
- Mutex.cs
- PerformanceCountersBase.cs
- MethodImplAttribute.cs
- ChameleonKey.cs
- BaseParagraph.cs
- OSEnvironmentHelper.cs
- CodeConstructor.cs
- TextAnchor.cs
- Knowncolors.cs
- WebDescriptionAttribute.cs
- RoleGroupCollection.cs
- TextSyndicationContentKindHelper.cs
- PanelStyle.cs
- AssemblyHash.cs
- DataGridTextBox.cs
- TraceEventCache.cs
- XmlSchemaComplexType.cs
- ColorTransform.cs
- SqlWriter.cs
- WindowsButton.cs
- ResourcesChangeInfo.cs
- XPathException.cs
- DataGridViewTopLeftHeaderCell.cs
- SqlDependencyListener.cs
- BufferedWebEventProvider.cs
- Win32SafeHandles.cs
- wgx_exports.cs
- DiscoveryDocumentSerializer.cs
- ClientRuntimeConfig.cs