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
- ItemDragEvent.cs
- TreeNode.cs
- ContainerFilterService.cs
- UnsafeNativeMethods.cs
- IISUnsafeMethods.cs
- TextDecorationCollectionConverter.cs
- TrackBarDesigner.cs
- SmtpNegotiateAuthenticationModule.cs
- reliableinputsessionchannel.cs
- EventRoute.cs
- PointF.cs
- BamlMapTable.cs
- DataList.cs
- SatelliteContractVersionAttribute.cs
- ReturnEventArgs.cs
- XmlSchemaInferenceException.cs
- WSMessageEncoding.cs
- PolicyLevel.cs
- OLEDB_Enum.cs
- CommonDialog.cs
- AssemblyBuilder.cs
- ConsumerConnectionPoint.cs
- HwndTarget.cs
- BrowserCapabilitiesCodeGenerator.cs
- UnmanagedMemoryAccessor.cs
- OleCmdHelper.cs
- ComponentResourceKey.cs
- ZipIOFileItemStream.cs
- PassportPrincipal.cs
- _NestedMultipleAsyncResult.cs
- Cursor.cs
- uribuilder.cs
- ServiceInstallComponent.cs
- COM2ComponentEditor.cs
- Floater.cs
- EntityWithChangeTrackerStrategy.cs
- ChildChangedEventArgs.cs
- ClearTypeHintValidation.cs
- ApplicationContext.cs
- HtmlControlPersistable.cs
- FlowSwitchDesigner.xaml.cs
- NestPullup.cs
- MediaScriptCommandRoutedEventArgs.cs
- DnsPermission.cs
- PackageController.cs
- ClientTargetSection.cs
- XmlSignificantWhitespace.cs
- SqlNotificationEventArgs.cs
- QueryContinueDragEvent.cs
- SQLBoolean.cs
- CapacityStreamGeometryContext.cs
- SafeArrayTypeMismatchException.cs
- RemoveStoryboard.cs
- TreeNodeEventArgs.cs
- BindingGraph.cs
- ToolStrip.cs
- FileEnumerator.cs
- StartUpEventArgs.cs
- XmlDataProvider.cs
- CookieProtection.cs
- MemoryFailPoint.cs
- SwitchCase.cs
- DesignerWidgets.cs
- DiagnosticsConfigurationHandler.cs
- DispatcherTimer.cs
- CacheAxisQuery.cs
- DPCustomTypeDescriptor.cs
- arabicshape.cs
- NameValuePair.cs
- Matrix.cs
- FormConverter.cs
- SQLMembershipProvider.cs
- CaseStatementProjectedSlot.cs
- AuthenticatingEventArgs.cs
- ConstraintCollection.cs
- ColorInterpolationModeValidation.cs
- TriggerAction.cs
- SignedInfo.cs
- WebPartCatalogAddVerb.cs
- BasicViewGenerator.cs
- ListenDesigner.cs
- IssuanceLicense.cs
- DataGridComboBoxColumn.cs
- FocusManager.cs
- InvalidComObjectException.cs
- TextDecorationCollection.cs
- SafeNativeMethods.cs
- TextPointerBase.cs
- Double.cs
- TreeSet.cs
- EmptyReadOnlyDictionaryInternal.cs
- PermissionRequestEvidence.cs
- ObjectItemLoadingSessionData.cs
- TextRangeAdaptor.cs
- ResolveNameEventArgs.cs
- XmlIterators.cs
- DataSourceView.cs
- SerializationStore.cs
- MD5.cs
- StorageInfo.cs