Export (0) Print
Expand All

ChannelDispatcherBase Class

Abstract base class for the channel dispatcher that accepts channels and associates them with a service.

Namespace:  System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public abstract class ChannelDispatcherBase : CommunicationObject

This is used by developers who want to keep the Windows Communication Foundation (WCF) programming model but replace the system-provided runtime. Such applications will pull messages out of channels and handle them directly with user-defined dispatchers. To use ChannelDispatcherBase , create a class derived from it, extend ServiceHost and override InitializeRuntime, adding instances of your class derived from ChannelDispatcherBase to ChannelDispatchers.

The IChannelListener and the ServiceHost, associated with the ChannelDispatcherBase object are available for inspection or modification through the Listener and Host respectively.

ServiceHost calls the Attach(ServiceHostBase) or Detach(ServiceHostBase) methods when adding or removing a ChannelDispatcherBase item from its ChannelDispatchers collection.

ServiceHost calls the CloseInput during shutdown before closing InstanceContexts. Windows Communication Foundation (WCF) uses this call to close datagram channels and wait for all messages to get to an InstanceContext.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft