Export (0) Print
Expand All

ChannelDispatcherCollection Class

Provides a thread-safe collection that contains channel dispatchers.

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

public class ChannelDispatcherCollection : SynchronizedCollection<ChannelDispatcherBase>

This collection is used by ServiceHostBase to manage the channel dispatchers associated with the host. A ChannelDispatcherCollection is created when ServiceHostBase is called and the collection can be accessed using the ChannelDispatchers property.

The collection contains ChannelDispatcherBase objects (and not just instances of ChannelDispatcher) because it is also used by developers who want to keep the Windows Communication Foundation (WCF) programming model but replace the system-provided runtime. They derive a class from ChannelDispatcherBase and extend ServiceHost (which inherits from ServiceHostBase) by overriding InitializeRuntime, adding instances of the class derived from ChannelDispatcherBase to ChannelDispatchers.

This class has no public constructors and is not intended to be used outside of the ServiceHost.

System.Object
  System.Collections.Generic.SynchronizedCollection<ChannelDispatcherBase>
    System.ServiceModel.Dispatcher.ChannelDispatcherCollection

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