ServiceChannel<TChannel> Class

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Represents a communication channel to a Microsoft Dynamics 365 service.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

System.Object
  Microsoft.Xrm.Sdk.Client.ServiceChannel<TChannel>

[SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true)]
public class ServiceChannel<TChannel> : IDisposable
where TChannel : class

Type Parameters

TChannel

Type: IOutputChannel or IRequestChannel. The type of channel produced by a channel factory.

NameDescription
System_CAPS_pubmethodServiceChannel<TChannel>(ChannelFactory<TChannel>)

Initializes a new instance of the ServiceChannel<TChannel> class using a channel factory. For internal use only.

NameDescription
System_CAPS_pubpropertyChannel

Gets the WCF channel that is associated with the service channel.

System_CAPS_protpropertyCommunicationObject

Gets the communication object that is associated with the service channel.

System_CAPS_protpropertyFactory

Gets the channel factory associated with the service channel.

NameDescription
System_CAPS_pubmethodAbort()

Causes a service channel to transition immediately from its current state into the closing state.

System_CAPS_pubmethodClose()

Causes a service channel to transition from its current state into the closed state.

System_CAPS_protmethodCreateChannel()

Creates a new WCF channel.

System_CAPS_pubmethodDispose()

Disposes the service channel.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Finalizes the service channel.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnChannelClosed(ChannelEventArgs)

Inserts processing on a service channel after it transitions to the closing state due to the invocation of a synchronous close operation.

System_CAPS_protmethodOnChannelFaulted(ChannelFaultedEventArgs)

Inserts processing on a service channel after it transitions to the faulted state due to the invocation of a synchronous operation.

System_CAPS_protmethodOnChannelOpened(ChannelEventArgs)

Inserts processing on a service channel after it transitions into the opening state which must complete within a specified interval of time.

System_CAPS_pubmethodOpen()

Causes a service channel to transition from the created state into the opened state.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventChannelClosed

Occurs when a service channel transitions into the closed state.

System_CAPS_pubeventChannelFaulted

Occurs when a service channel transitions into the faulted state.

System_CAPS_pubeventChannelOpened

Occurs when a service channel transitions into the opened state.

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

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: