ServiceChannel<TChannel> ServiceChannel<TChannel> ServiceChannel<TChannel> 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
type ServiceChannel<'Channel (requires 'Channel : null)> = class
    interface IDisposable
Public Class ServiceChannel(Of TChannel)
Implements IDisposable

Type Parameters

TChannel

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

Inheritance
ServiceChannel<TChannel>ServiceChannel<TChannel>ServiceChannel<TChannel>ServiceChannel<TChannel>
Attributes
Implements

Constructors

ServiceChannel<TChannel>(ChannelFactory<TChannel>) ServiceChannel<TChannel>(ChannelFactory<TChannel>) ServiceChannel<TChannel>(ChannelFactory<TChannel>) ServiceChannel<TChannel>(ChannelFactory<TChannel>)

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

Properties

Channel Channel Channel Channel

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

CommunicationObject CommunicationObject CommunicationObject CommunicationObject

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

Factory Factory Factory Factory

Gets the channel factory associated with the service channel.

Methods

Abort() Abort() Abort() Abort()

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

Close() Close() Close() Close()

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

CreateChannel() CreateChannel() CreateChannel() CreateChannel()

Creates a new WCF channel.

Dispose() Dispose() Dispose() Dispose()

Disposes the service channel.

Finalize() Finalize() Finalize() Finalize()

Finalizes the service channel.

OnChannelClosed(ChannelEventArgs) OnChannelClosed(ChannelEventArgs) OnChannelClosed(ChannelEventArgs) 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) OnChannelFaulted(ChannelFaultedEventArgs) OnChannelFaulted(ChannelFaultedEventArgs) 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) OnChannelOpened(ChannelEventArgs) OnChannelOpened(ChannelEventArgs) 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() Open() Open() Open()

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

Events

ChannelClosed ChannelClosed ChannelClosed ChannelClosed

Occurs when a service channel transitions into the closed state.

ChannelFaulted ChannelFaulted ChannelFaulted ChannelFaulted

Occurs when a service channel transitions into the faulted state.

ChannelOpened ChannelOpened ChannelOpened ChannelOpened

Occurs when a service channel transitions into the opened state.

Applies to