ServiceChannel<TChannel> Class

Definition

Represents a communication channel to a Microsoft Dynamics 365 service.

generic <typename TChannel>
 where TChannel : classpublic ref class ServiceChannel : IDisposable
[System.Security.SecuritySafeCritical]
public class ServiceChannel<TChannel> : IDisposable where TChannel : class
[<System.Security.SecuritySafeCritical>]
type ServiceChannel<'Channel (requires 'Channel : null)> = class
    interface IDisposable
Public Class ServiceChannel(Of TChannel)
Implements IDisposable

Type Parameters

TChannel

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

Inheritance
ServiceChannel<TChannel>
Attributes
Implements

Constructors

ServiceChannel<TChannel>(ChannelFactory<TChannel>)

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

Properties

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

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.

Finalize()

Finalizes the service channel.

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.

Events

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.

Applies to