Partilhar via


ServiceChannel<TChannel> Class

 

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)

Inheritance Hierarchy

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

Syntax

[SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true)]
public class ServiceChannel<TChannel> : IDisposable
where TChannel : class
<SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted := True)>
Public Class ServiceChannel(Of TChannel As Class)
    Implements IDisposable

Type Parameters

Constructors

Name Description
System_CAPS_pubmethod ServiceChannel<TChannel>(ChannelFactory<TChannel>)

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

Properties

Name Description
System_CAPS_pubproperty Channel

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

System_CAPS_protproperty CommunicationObject

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

System_CAPS_protproperty Factory

Gets the channel factory associated with the service channel.

Methods

Name Description
System_CAPS_pubmethod Abort()

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

System_CAPS_pubmethod Close()

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

System_CAPS_protmethod CreateChannel()

Creates a new WCF channel.

System_CAPS_pubmethod Dispose()

Disposes the service channel.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

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

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod OnChannelClosed(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_protmethod OnChannelFaulted(ChannelFaultedEventArgs)

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

System_CAPS_protmethod OnChannelOpened(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_pubmethod Open()

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

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent ChannelClosed

Occurs when a service channel transitions into the closed state.

System_CAPS_pubevent ChannelFaulted

Occurs when a service channel transitions into the faulted state.

System_CAPS_pubevent ChannelOpened

Occurs when a service channel transitions into the opened state.

Thread Safety

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

See Also

Microsoft.Xrm.Sdk.Client Namespace
ChannelFactory(TChannel) Class

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright