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
- TChannel
Type: IOutputChannel or IRequestChannel. The type of channel produced by a channel factory.
Constructors
Name | Description | |
---|---|---|
ServiceChannel<TChannel>(ChannelFactory<TChannel>) | Initializes a new instance of the ServiceChannel<TChannel> class using a channel factory. For internal use only. |
Properties
Name | Description | |
---|---|---|
Channel | Gets the WCF channel that is associated with the service channel. |
|
CommunicationObject | Gets the communication object that is associated with the service channel. |
|
Factory | Gets the channel factory associated with the service channel. |
Methods
Name | Description | |
---|---|---|
Abort() | Causes a service channel to transition immediately from its current state into the closing state. |
|
Close() | Causes a service channel to transition from its current state into the closed state. |
|
CreateChannel() | Creates a new WCF channel. |
|
Dispose() | Disposes the service channel. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | Finalizes the service channel.(Overrides Object.Finalize().) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
OnChannelClosed(ChannelEventArgs) | Inserts processing on a service channel after it transitions to the closing state due to the invocation of a synchronous close operation. |
|
OnChannelFaulted(ChannelFaultedEventArgs) | Inserts processing on a service channel after it transitions to the faulted state due to the invocation of a synchronous operation. |
|
OnChannelOpened(ChannelEventArgs) | Inserts processing on a service channel after it transitions into the opening state which must complete within a specified interval of time. |
|
Open() | Causes a service channel to transition from the created state into the opened state. |
|
ToString() | (Inherited from Object.) |
Events
Name | Description | |
---|---|---|
ChannelClosed | Occurs when a service channel transitions into the closed state. |
|
ChannelFaulted | Occurs when a service channel transitions into the faulted state. |
|
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