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
- CodeIterationStatement.cs
- Evaluator.cs
- AstNode.cs
- GridViewRow.cs
- DetailsViewDeleteEventArgs.cs
- SynthesizerStateChangedEventArgs.cs
- Freezable.cs
- TransformValueSerializer.cs
- safelinkcollection.cs
- CacheRequest.cs
- Keywords.cs
- DataServiceExpressionVisitor.cs
- VectorConverter.cs
- HttpsHostedTransportConfiguration.cs
- SQLMoney.cs
- XPathParser.cs
- AdornerHitTestResult.cs
- FunctionDetailsReader.cs
- DesignerSerializationOptionsAttribute.cs
- ErrorHandlingAcceptor.cs
- XmlSchemaSubstitutionGroup.cs
- XmlSchemaObjectTable.cs
- ActivitySurrogateSelector.cs
- BuiltInExpr.cs
- VirtualPathData.cs
- EntityDataSourceSelectingEventArgs.cs
- CustomErrorsSection.cs
- ButtonBaseAutomationPeer.cs
- ResourceReader.cs
- Graphics.cs
- ColumnHeaderConverter.cs
- HotSpotCollection.cs
- WebPartExportVerb.cs
- ScriptControlDescriptor.cs
- BinaryMethodMessage.cs
- METAHEADER.cs
- GeometryConverter.cs
- XmlLanguageConverter.cs
- XmlCodeExporter.cs
- ThrowOnMultipleAssignment.cs
- EmptyControlCollection.cs
- NumericPagerField.cs
- SecurityCriticalDataForSet.cs
- KeyManager.cs
- TableLayoutPanel.cs
- StyleCollection.cs
- XmlLoader.cs
- _BaseOverlappedAsyncResult.cs
- DynamicPropertyReader.cs
- OrderByQueryOptionExpression.cs
- ActivationArguments.cs
- ReachPageContentCollectionSerializer.cs
- LostFocusEventManager.cs
- BasicHttpMessageCredentialType.cs
- VariableQuery.cs
- _Rfc2616CacheValidators.cs
- OracleConnectionStringBuilder.cs
- GroupItemAutomationPeer.cs
- HtmlInputButton.cs
- PropertyPathWorker.cs
- EncoderExceptionFallback.cs
- RtType.cs
- DSASignatureFormatter.cs
- EdgeModeValidation.cs
- HtmlControl.cs
- XmlSchemaSequence.cs
- SRef.cs
- InvalidAsynchronousStateException.cs
- TreeNode.cs
- IPAddress.cs
- NetPeerTcpBindingCollectionElement.cs
- BindingGroup.cs
- ScriptServiceAttribute.cs
- WebControl.cs
- BehaviorEditorPart.cs
- SocketElement.cs
- invalidudtexception.cs
- SoapSchemaImporter.cs
- FormsAuthenticationConfiguration.cs
- AccessViolationException.cs
- ProtocolElementCollection.cs
- TextSpanModifier.cs
- Decorator.cs
- XmlSchemaComplexContentExtension.cs
- XmlTextReader.cs
- System.Data.OracleClient_BID.cs
- RuntimeConfig.cs
- CookieHandler.cs
- ReadingWritingEntityEventArgs.cs
- TimeStampChecker.cs
- GeometryConverter.cs
- DefaultTextStoreTextComposition.cs
- SchemaTypeEmitter.cs
- LocalizedNameDescriptionPair.cs
- HtmlFormParameterWriter.cs
- ComAdminWrapper.cs
- XamlTemplateSerializer.cs
- SafeRightsManagementSessionHandle.cs
- SecurityManager.cs