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
- SessionSwitchEventArgs.cs
- DropSource.cs
- CompositeCollectionView.cs
- PackWebRequest.cs
- DisplayClaim.cs
- CodeMemberField.cs
- ResourceExpressionBuilder.cs
- CharacterBuffer.cs
- QueryReaderSettings.cs
- BuildDependencySet.cs
- GroupBox.cs
- GradientSpreadMethodValidation.cs
- TokenBasedSetEnumerator.cs
- SamlAuthenticationClaimResource.cs
- mil_commands.cs
- UniqueIdentifierService.cs
- DataControlFieldHeaderCell.cs
- DrawTreeNodeEventArgs.cs
- SqlNodeAnnotations.cs
- RadioButtonList.cs
- ProgressBar.cs
- AliasedSlot.cs
- ExpressionBindingCollection.cs
- ToolStripDropDownItem.cs
- WebDisplayNameAttribute.cs
- Visual3D.cs
- TaskbarItemInfo.cs
- IOThreadScheduler.cs
- RtfToken.cs
- SecurityTokenProvider.cs
- StrokeCollection2.cs
- ConfigurationSectionGroup.cs
- CaseInsensitiveComparer.cs
- SelectionPattern.cs
- ObservableDictionary.cs
- NativeMethods.cs
- DebuggerService.cs
- ByteStreamMessageEncoderFactory.cs
- ReferentialConstraint.cs
- LoginDesigner.cs
- CharConverter.cs
- Profiler.cs
- Pair.cs
- GridProviderWrapper.cs
- GradientBrush.cs
- XmlLinkedNode.cs
- DiscriminatorMap.cs
- MonitoringDescriptionAttribute.cs
- IBuiltInEvidence.cs
- UserNameSecurityToken.cs
- ShaderRenderModeValidation.cs
- HashLookup.cs
- ImportCatalogPart.cs
- LinqTreeNodeEvaluator.cs
- LambdaCompiler.Address.cs
- DataGridCommandEventArgs.cs
- MergePropertyDescriptor.cs
- Point3DCollectionValueSerializer.cs
- SafeFindHandle.cs
- WebPartConnectionCollection.cs
- SynchronousReceiveBehavior.cs
- FrameworkElement.cs
- ObjectNavigationPropertyMapping.cs
- PocoPropertyAccessorStrategy.cs
- PolicyStatement.cs
- StateMachine.cs
- TemplateControlCodeDomTreeGenerator.cs
- SoapAttributeAttribute.cs
- WinEventHandler.cs
- JsonServiceDocumentSerializer.cs
- CustomCategoryAttribute.cs
- ClockGroup.cs
- FontFamilyIdentifier.cs
- XmlSchemaImport.cs
- ExecutorLocksHeldException.cs
- UserControl.cs
- ArrayList.cs
- InvokeHandlers.cs
- ClientUtils.cs
- AnnotationObservableCollection.cs
- TdsParser.cs
- EditorZoneDesigner.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- LinkedList.cs
- Message.cs
- Int32CollectionValueSerializer.cs
- ProfileSettings.cs
- MLangCodePageEncoding.cs
- LocatorGroup.cs
- ComplexPropertyEntry.cs
- DocComment.cs
- BrowserCapabilitiesCodeGenerator.cs
- AutomationProperties.cs
- TemplatePartAttribute.cs
- RNGCryptoServiceProvider.cs
- Random.cs
- LabelEditEvent.cs
- designeractionlistschangedeventargs.cs
- AnyAllSearchOperator.cs
- BaseTemplateParser.cs