Editare

Partajați prin


ClientBase<TChannel>.ChannelBase<T> Class

Definition

Represents the generic ChannelBase class.

protected: generic <typename T>
 where TChannel : class where T : classref class ClientBase<TChannel>::ChannelBase : IDisposable, System::ServiceModel::Channels::IOutputChannel, System::ServiceModel::Channels::IRequestChannel, System::ServiceModel::IClientChannel, System::ServiceModel::IExtensibleObject<System::ServiceModel::IContextChannel ^>
protected 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 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>
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 Validate All Inputs.

Constructors

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

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

Methods

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

Starts an asynchronous call of a specified method by name.

EndInvoke(String, Object[], IAsyncResult)

Completes an asynchronous invocation by name of a specified method.

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IChannel.GetProperty<TProperty>()

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

IClientChannel.AllowInitializationUI

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

IClientChannel.BeginDisplayInitializationUI(AsyncCallback, Object)

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

IClientChannel.DidInteractiveInitialization

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

IClientChannel.DisplayInitializationUI()

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

IClientChannel.EndDisplayInitializationUI(IAsyncResult)

Called when the call to BeginDisplayInitializationUI has finished.

IClientChannel.UnknownMessageReceived

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

IClientChannel.Via

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

ICommunicationObject.Abort()

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

ICommunicationObject.BeginClose(AsyncCallback, Object)

Begins an asynchronous operation to close a communication object.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

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

ICommunicationObject.BeginOpen(AsyncCallback, Object)

Begins an asynchronous operation to open a communication object.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

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

ICommunicationObject.Close()

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

ICommunicationObject.Close(TimeSpan)

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

ICommunicationObject.Closed

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

ICommunicationObject.Closing

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

ICommunicationObject.EndClose(IAsyncResult)

Completes an asynchronous operation to close a communication object.

ICommunicationObject.EndOpen(IAsyncResult)

Completes an asynchronous operation to open a communication object.

ICommunicationObject.Faulted

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

ICommunicationObject.Open()

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

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

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

ICommunicationObject.Opening

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

ICommunicationObject.State

Gets the current state of the communication-oriented object.

IContextChannel.AllowOutputBatching

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

IContextChannel.InputSession

Gets the input session for the channel.

IContextChannel.LocalAddress

Gets the local endpoint for the channel.

IContextChannel.OperationTimeout

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

IContextChannel.OutputSession

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

IContextChannel.RemoteAddress

Gets the remote address associated with the channel.

IContextChannel.SessionId

Gets an identifier for the current session, if any.

IDisposable.Dispose()

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

IExtensibleObject<IContextChannel>.Extensions

Gets a collection of extension objects for this extensible 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)

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

IOutputChannel.EndSend(IAsyncResult)

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

IOutputChannel.RemoteAddress

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

IOutputChannel.Send(Message, TimeSpan)

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

IOutputChannel.Send(Message)

Transmits a message to the destination of the output channel.

IOutputChannel.Via

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

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)

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)

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

IRequestChannel.RemoteAddress

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

IRequestChannel.Request(Message, TimeSpan)

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

IRequestChannel.Request(Message)

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

IRequestChannel.Via

Gets the transport address to which the request is sent.

Applies to