ClientBase<TChannel>.ChannelBase<T> ClientBase<TChannel>.ChannelBase<T> ClientBase<TChannel>.ChannelBase<T> Class

Definition

Represents the generic ChannelBase class.

generic <typename T>
 where TChannel : class where T : classpublic protected ref class ClientBase<TChannel>::ChannelBase : IDisposable, System::ServiceModel::Channels::IOutputChannel, System::ServiceModel::Channels::IRequestChannel, System::ServiceModel::IClientChannel, System::ServiceModel::IExtensibleObject<System::ServiceModel::IContextChannel ^>
protected internal class ClientBase<TChannel>.ChannelBase<T> : IDisposable, System.ServiceModel.Channels.IOutputChannel, System.ServiceModel.Channels.IRequestChannel, System.ServiceModel.IClientChannel, System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel> where TChannel : class where T : class
Protected Friend Class ClientBase(Of TChannel).ChannelBase(Of T)
Implements IClientChannel, IDisposable, IExtensibleObject(Of IContextChannel), IOutputChannel, IRequestChannel

Type Parameters

TChannel
T

The generic class.

Inheritance
ClientBase<TChannel>.ChannelBase<T>ClientBase<TChannel>.ChannelBase<T>ClientBase<TChannel>.ChannelBase<T>
Implements

Remarks

Important

Calling methods from this class with untrusted data is a security risk. Call the methods from this class only with trusted data. For more information, see Data Validation.

Constructors

ClientBase<TChannel>.ChannelBase<T>(ClientBase<T>) ClientBase<TChannel>.ChannelBase<T>(ClientBase<T>) ClientBase<TChannel>.ChannelBase<T>(ClientBase<T>)

Initializes a new instance of the ClientBase<TChannel>.ChannelBase<T> class from an existing instance of the class.

Properties

AllowInitializationUI AllowInitializationUI AllowInitializationUI
AllowOutputBatching AllowOutputBatching AllowOutputBatching
DidInteractiveInitialization DidInteractiveInitialization DidInteractiveInitialization
InputSession InputSession InputSession
LocalAddress LocalAddress LocalAddress
OperationTimeout OperationTimeout OperationTimeout
OutputSession OutputSession OutputSession
RemoteAddress RemoteAddress RemoteAddress
SessionId SessionId SessionId
Via Via Via

Methods

BeginDisplayInitializationUI(AsyncCallback, Object) BeginDisplayInitializationUI(AsyncCallback, Object) BeginDisplayInitializationUI(AsyncCallback, Object)
BeginInvoke(String, Object[], AsyncCallback, Object) BeginInvoke(String, Object[], AsyncCallback, Object) BeginInvoke(String, Object[], AsyncCallback, Object)

Starts an asynchronous call of a specified method by name.

DisplayInitializationUI() DisplayInitializationUI() DisplayInitializationUI()
Dispose() Dispose() Dispose()
EndDisplayInitializationUI(IAsyncResult) EndDisplayInitializationUI(IAsyncResult) EndDisplayInitializationUI(IAsyncResult)
EndInvoke(String, Object[], IAsyncResult) EndInvoke(String, Object[], IAsyncResult) EndInvoke(String, Object[], IAsyncResult)

Completes an asynchronous invocation by name of a specified method.

Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Invoke(String, Object[]) Invoke(String, Object[]) Invoke(String, Object[])
MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

UnknownMessageReceived UnknownMessageReceived UnknownMessageReceived

Explicit Interface Implementations

IChannel.GetProperty<TProperty>() IChannel.GetProperty<TProperty>() IChannel.GetProperty<TProperty>()

Returns a typed object requested, if present from the appropriate layer in the channel stack.

IClientChannel.AllowInitializationUI IClientChannel.AllowInitializationUI IClientChannel.AllowInitializationUI

Gets or sets a value that indicates whether the client channel allows an initialization UI.

IClientChannel.BeginDisplayInitializationUI(AsyncCallback, Object) IClientChannel.BeginDisplayInitializationUI(AsyncCallback, Object) IClientChannel.BeginDisplayInitializationUI(AsyncCallback, Object)

An asynchronous call to begin using a user interface to obtain credential information.

IClientChannel.DidInteractiveInitialization IClientChannel.DidInteractiveInitialization IClientChannel.DidInteractiveInitialization

Gets a value that indicates whether a call was done to a user interface to obtain credential information.

IClientChannel.DisplayInitializationUI() IClientChannel.DisplayInitializationUI() IClientChannel.DisplayInitializationUI()

Specifies a call to a user interface to obtain credential information.

IClientChannel.EndDisplayInitializationUI(IAsyncResult) IClientChannel.EndDisplayInitializationUI(IAsyncResult) IClientChannel.EndDisplayInitializationUI(IAsyncResult)

Called when the call to BeginDisplayInitializationUI has finished.

IClientChannel.UnknownMessageReceived IClientChannel.UnknownMessageReceived IClientChannel.UnknownMessageReceived

The event handler that is invoked when the ClientBase object receives an unknown message.

IClientChannel.Via IClientChannel.Via IClientChannel.Via

Gets the URI that contains the transport address to which messages are sent on the client channel.

ICommunicationObject.Abort() ICommunicationObject.Abort() ICommunicationObject.Abort()

Causes a communication object to transition immediately from its current state into the closed state.

ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object)

Begins an asynchronous operation to close a communication object.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to close a communication object with a specified time-out.

ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object)

Begins an asynchronous operation to open a communication object.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to open a communication object within a specified interval of time.

ICommunicationObject.Close() ICommunicationObject.Close() ICommunicationObject.Close()

Causes a communication object to transition from its current state into the closed state.

ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan)

Causes a communication object to transition from its current state into the closed state.

ICommunicationObject.Closed ICommunicationObject.Closed ICommunicationObject.Closed

The event handler that is invoked when the ClientBase object has transitioned from its current state to the closed state.

ICommunicationObject.Closing ICommunicationObject.Closing ICommunicationObject.Closing

The event handler that is invoked when the ClientBase object transitions from its current state to the closed state.

ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult)

Completes an asynchronous operation to close a communication object.

ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult)

Completes an asynchronous operation to open a communication object.

ICommunicationObject.Faulted ICommunicationObject.Faulted ICommunicationObject.Faulted

The event handler that is invoked when fault occurs while performing an operation on the ClientBase object.

ICommunicationObject.Open() ICommunicationObject.Open() ICommunicationObject.Open()

Causes a communication object to transition from the created state into the opened state.

ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan)

Causes a communication object to transition from the created state into the opened state within a specified interval of time.

ICommunicationObject.Opened ICommunicationObject.Opened ICommunicationObject.Opened

The event handler that is invoked when the ClientBase object has transitioned from the created state to the opened state.

ICommunicationObject.Opening ICommunicationObject.Opening ICommunicationObject.Opening

The event handler that is invoked when the ClientBase object transitions from the created state to the opened state.

ICommunicationObject.State ICommunicationObject.State ICommunicationObject.State

Gets the current state of the communication-oriented object.

IContextChannel.AllowOutputBatching IContextChannel.AllowOutputBatching IContextChannel.AllowOutputBatching

Gets or sets a value that indicates whether the batching of outgoing messages is allowed; otherwise, false.

IContextChannel.InputSession IContextChannel.InputSession IContextChannel.InputSession

Gets the input session for the channel.

IContextChannel.LocalAddress IContextChannel.LocalAddress IContextChannel.LocalAddress

Gets the local endpoint for the channel.

IContextChannel.OperationTimeout IContextChannel.OperationTimeout IContextChannel.OperationTimeout

Gets or sets the time period within which an operation must complete or an exception is thrown.

IContextChannel.OutputSession IContextChannel.OutputSession IContextChannel.OutputSession

Gets the output session associated with the channel, if any.

IContextChannel.RemoteAddress IContextChannel.RemoteAddress IContextChannel.RemoteAddress

Gets the remote address associated with the channel.

IContextChannel.SessionId IContextChannel.SessionId IContextChannel.SessionId

Gets an identifier for the current session, if any.

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

Performs application-defined tasks with freeing, releasing, or resetting unmanaged resources associated with the channel.

IExtensibleObject<IContextChannel>.Extensions IExtensibleObject<IContextChannel>.Extensions IExtensibleObject<IContextChannel>.Extensions

Gets a collection of extension objects for this extensible object.

IOutputChannel.BeginSend(Message, AsyncCallback, Object) IOutputChannel.BeginSend(Message, AsyncCallback, Object) IOutputChannel.BeginSend(Message, AsyncCallback, Object)

Begins an asynchronous operation to transmit a message to the destination of the output channel.

IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object) IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object) IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to transmit a message to the destination of the output channel within a specified interval of time.

IOutputChannel.EndSend(IAsyncResult) IOutputChannel.EndSend(IAsyncResult) IOutputChannel.EndSend(IAsyncResult)

Completes an asynchronous operation to transmit a message to the destination of the output channel.

IOutputChannel.RemoteAddress IOutputChannel.RemoteAddress IOutputChannel.RemoteAddress

Gets the destination of the service to which messages are sent out on the output channel.

IOutputChannel.Send(Message) IOutputChannel.Send(Message) IOutputChannel.Send(Message)

Transmits a message to the destination of the output channel.

IOutputChannel.Send(Message, TimeSpan) IOutputChannel.Send(Message, TimeSpan) IOutputChannel.Send(Message, TimeSpan)

Sends a message on the current output channel within a specified interval of time.

IOutputChannel.Via IOutputChannel.Via IOutputChannel.Via

Gets the URI that contains the transport address to which messages are sent on the output channel.

IRequestChannel.BeginRequest(Message, AsyncCallback, Object) IRequestChannel.BeginRequest(Message, AsyncCallback, Object) IRequestChannel.BeginRequest(Message, AsyncCallback, Object)

Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange.

IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object) IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object) IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange within a specified interval of time.

IRequestChannel.EndRequest(IAsyncResult) IRequestChannel.EndRequest(IAsyncResult) IRequestChannel.EndRequest(IAsyncResult)

Completes an asynchronous operation to return a message-based response to a transmitted request.

IRequestChannel.RemoteAddress IRequestChannel.RemoteAddress IRequestChannel.RemoteAddress

Gets the destination of the service to which messages are sent out on the output channel.

IRequestChannel.Request(Message) IRequestChannel.Request(Message) IRequestChannel.Request(Message)

Sends a message-based request and returns the correlated message-based response.

IRequestChannel.Request(Message, TimeSpan) IRequestChannel.Request(Message, TimeSpan) IRequestChannel.Request(Message, TimeSpan)

Sends a message-based request and returns the correlated message-based response within a specified interval of time.

IRequestChannel.Via IRequestChannel.Via IRequestChannel.Via

Gets the transport address to which the request is sent.

Applies to