Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / MsmqChannelFactory.cs / 1 / MsmqChannelFactory.cs
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.ServiceModel.Channels
{
using System.Runtime.Serialization;
using System.ServiceModel;
abstract class MsmqChannelFactory : MsmqChannelFactoryBase
{
int maxPoolSize;
QueueTransferProtocol queueTransferProtocol;
bool useActiveDirectory;
protected MsmqChannelFactory(MsmqTransportBindingElement bindingElement, BindingContext context)
: base(bindingElement, context)
{
this.maxPoolSize = bindingElement.MaxPoolSize;
this.queueTransferProtocol = bindingElement.QueueTransferProtocol;
this.useActiveDirectory = bindingElement.UseActiveDirectory;
}
public int MaxPoolSize
{
get { return this.maxPoolSize; }
}
public QueueTransferProtocol QueueTransferProtocol
{
get { return this.queueTransferProtocol; }
}
public bool UseActiveDirectory
{
get { return this.useActiveDirectory; }
}
}
sealed class MsmqOutputChannelFactory : MsmqChannelFactory
{
internal MsmqOutputChannelFactory(MsmqTransportBindingElement bindingElement, BindingContext context)
: base(bindingElement, context)
{
}
protected override IOutputChannel OnCreateChannel(EndpointAddress to, Uri via)
{
base.ValidateScheme(via);
return new MsmqOutputChannel(this, to, via, ManualAddressing);
}
}
sealed class MsmqOutputSessionChannelFactory : MsmqChannelFactory
{
internal MsmqOutputSessionChannelFactory(MsmqTransportBindingElement bindingElement, BindingContext context)
: base(bindingElement, context)
{
}
protected override IOutputSessionChannel OnCreateChannel(EndpointAddress to, Uri via)
{
base.ValidateScheme(via);
return new MsmqOutputSessionChannel(this, to, via, ManualAddressing);
}
}
}
// 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
- ConstraintStruct.cs
- WebPartDeleteVerb.cs
- ModuleBuilder.cs
- AssemblyNameProxy.cs
- DataGridCellClipboardEventArgs.cs
- DownloadProgressEventArgs.cs
- HttpRequest.cs
- ActivatedMessageQueue.cs
- NextPreviousPagerField.cs
- ADRoleFactory.cs
- CodeLabeledStatement.cs
- KeyPressEvent.cs
- QueryOutputWriterV1.cs
- IfJoinedCondition.cs
- AccessText.cs
- CompatibleIComparer.cs
- ListControl.cs
- GridViewItemAutomationPeer.cs
- OutputCacheProfile.cs
- IntSecurity.cs
- AnchoredBlock.cs
- UnmanagedMarshal.cs
- NamespaceCollection.cs
- SqlDelegatedTransaction.cs
- Descriptor.cs
- ScrollBar.cs
- ListBindingConverter.cs
- DesignerTransaction.cs
- AutomationElement.cs
- OleDbParameter.cs
- UnsafeNativeMethodsCLR.cs
- SettingsBase.cs
- XmlUtf8RawTextWriter.cs
- ResourceAssociationSetEnd.cs
- ShapingEngine.cs
- VectorCollectionValueSerializer.cs
- XPathChildIterator.cs
- WorkflowPersistenceService.cs
- EndOfStreamException.cs
- ListBox.cs
- StructuralType.cs
- WindowsUpDown.cs
- UnmanagedMemoryStream.cs
- SeverityFilter.cs
- ValueSerializerAttribute.cs
- SimpleHandlerFactory.cs
- SeekStoryboard.cs
- TraceFilter.cs
- UnionCqlBlock.cs
- EpmSourcePathSegment.cs
- XmlCustomFormatter.cs
- QueryCursorEventArgs.cs
- HealthMonitoringSectionHelper.cs
- Tracking.cs
- UniqueSet.cs
- DrawItemEvent.cs
- SkipStoryboardToFill.cs
- DataGridViewRowCollection.cs
- Timer.cs
- TypeConverterValueSerializer.cs
- BindMarkupExtensionSerializer.cs
- LinqExpressionNormalizer.cs
- DisableDpiAwarenessAttribute.cs
- WindowsTooltip.cs
- EventItfInfo.cs
- ValueQuery.cs
- DefaultTraceListener.cs
- ExtensionMethods.cs
- XmlSchemaProviderAttribute.cs
- MSG.cs
- ComplexPropertyEntry.cs
- LookupBindingPropertiesAttribute.cs
- SkipStoryboardToFill.cs
- XPathMessageFilterElementComparer.cs
- XmlSchemaSequence.cs
- XMLSchema.cs
- CatalogZone.cs
- PageThemeParser.cs
- WebBrowserUriTypeConverter.cs
- DataErrorValidationRule.cs
- FormatSettings.cs
- AnimationClock.cs
- SoapIncludeAttribute.cs
- EntityDesignPluralizationHandler.cs
- HelpKeywordAttribute.cs
- HttpGetProtocolImporter.cs
- TimelineClockCollection.cs
- Run.cs
- TemplateControlBuildProvider.cs
- CopyOnWriteList.cs
- panel.cs
- FontCacheUtil.cs
- DataControlCommands.cs
- ServiceBuildProvider.cs
- SafeCryptContextHandle.cs
- UdpContractFilterBehavior.cs
- PageThemeBuildProvider.cs
- TypeConverterMarkupExtension.cs
- XmlSchemaCollection.cs
- XmlSchemaGroup.cs