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
- XmlUtf8RawTextWriter.cs
- XmlMapping.cs
- ControlPager.cs
- Substitution.cs
- XPathAncestorIterator.cs
- IsolatedStorage.cs
- BuildProviderCollection.cs
- TypedTableBaseExtensions.cs
- MediaPlayerState.cs
- ContextQuery.cs
- DefaultBinder.cs
- unsafenativemethodstextservices.cs
- ProviderConnectionPoint.cs
- RelationshipConverter.cs
- BevelBitmapEffect.cs
- DependencyProperty.cs
- _KerberosClient.cs
- _SingleItemRequestCache.cs
- QilLiteral.cs
- UnsafeNativeMethods.cs
- FilterQuery.cs
- ConnectionConsumerAttribute.cs
- WebPartConnectionsCancelEventArgs.cs
- glyphs.cs
- ParameterBuilder.cs
- SchemaEntity.cs
- JpegBitmapDecoder.cs
- EntryIndex.cs
- Vector3DAnimation.cs
- DiagnosticsConfigurationHandler.cs
- RecognizerStateChangedEventArgs.cs
- TextChangedEventArgs.cs
- MSAAWinEventWrap.cs
- Transform3D.cs
- RequestTimeoutManager.cs
- CultureInfoConverter.cs
- Visual3D.cs
- MailAddressCollection.cs
- LineSegment.cs
- Comparer.cs
- ScrollProviderWrapper.cs
- DataBoundControlDesigner.cs
- MulticastIPAddressInformationCollection.cs
- TableCellCollection.cs
- PageAdapter.cs
- ISAPIRuntime.cs
- WebPartConnectionsDisconnectVerb.cs
- TextWriter.cs
- BindToObject.cs
- EntryPointNotFoundException.cs
- DataSourceControl.cs
- SessionEndedEventArgs.cs
- MetadataArtifactLoaderComposite.cs
- RadioButton.cs
- XmlValidatingReaderImpl.cs
- SqlMethodTransformer.cs
- ConnectivityStatus.cs
- DocumentsTrace.cs
- HttpResponseHeader.cs
- DynamicActivityTypeDescriptor.cs
- SecurityDescriptor.cs
- TraversalRequest.cs
- QilReplaceVisitor.cs
- CapabilitiesSection.cs
- TaskFormBase.cs
- OleDbConnectionFactory.cs
- CultureSpecificStringDictionary.cs
- HTMLTagNameToTypeMapper.cs
- latinshape.cs
- FormViewRow.cs
- DataGridViewBand.cs
- TabControl.cs
- PointF.cs
- DrawingDrawingContext.cs
- EmbeddedObject.cs
- ColorConverter.cs
- EventLogStatus.cs
- WebChannelFactory.cs
- compensatingcollection.cs
- UniqueEventHelper.cs
- RegistryPermission.cs
- PictureBox.cs
- NameScope.cs
- MutexSecurity.cs
- SizeChangedEventArgs.cs
- XmlSchemaException.cs
- XmlEncoding.cs
- WebBrowserNavigatedEventHandler.cs
- Int64.cs
- CommentEmitter.cs
- TailCallAnalyzer.cs
- PersonalizationProvider.cs
- XmlMemberMapping.cs
- ValueExpressions.cs
- SqlBulkCopyColumnMapping.cs
- ReferencedCategoriesDocument.cs
- VideoDrawing.cs
- RayMeshGeometry3DHitTestResult.cs
- activationcontext.cs
- PathFigure.cs