ClientBase<TChannel>.ChannelBase<T> Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
This class is used by automatically generated client proxies to call services and should not be used otherwise.
Inheritance Hierarchy
System.Object
System.ServiceModel.ClientBase<TChannel>.ChannelBase<T>
Namespace: System.ServiceModel
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Protected Class ChannelBase(Of T As Class) _
Implements IClientChannel, IContextChannel, IExtensibleObject(Of IContextChannel), _
IDisposable, IOutputChannel, IRequestChannel, IChannel, ICommunicationObject
protected class ChannelBase<T> : IClientChannel,
IContextChannel, IExtensibleObject<IContextChannel>, IDisposable, IOutputChannel,
IRequestChannel, IChannel, ICommunicationObject
where T : class
Type Parameters
- T
The ClientBase<TChannel>.ChannelBase<T> generic type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ClientBase<TChannel>.ChannelBase<T> | Initializes a new instance of the ClientBase<TChannel> class from an existing instance of the class. |
Top
Methods
Name | Description | |
---|---|---|
BeginInvoke | Starts an asynchronous call of a specified method by name. | |
EndInvoke | 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.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (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.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IChannel.GetProperty<TProperty> | Returns a typed object requested, if present, from the appropriate layer in the channel stack. | |
IClientChannel.AllowInitializationUI | The EndpointAddress serves as both the ultimate destination and the physical address if a Via is not specified. If the Via is specified, then that is the actual physical address to which the message is sent and through which the message must go to arrive at its destination. | |
IClientChannel.BeginDisplayInitializationUI | 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 | A call to a user interface to obtain credential information. | |
IClientChannel.EndDisplayInitializationUI | Called when the call to BeginDisplayInitializationUI has finished. | |
IClientChannel.UnknownMessageReceived | This is a reserved event. | |
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 | Completes an asynchronous operation to close a communication object. | |
ICommunicationObject.EndOpen | Completes an asynchronous operation to open a communication object. | |
ICommunicationObject.Faulted | The event handler that is invoked when a 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 instructs Silverlight 5 to store a set of messages before giving the messages to the transport. | |
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 | Returns an identifier for the current session, if any. | |
IDisposable.Dispose | Performs application-defined tasks associated 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 | 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) | Transmits a message to the destination of the output channel. | |
IOutputChannel.Send(Message, TimeSpan) | Sends a message on the current output channel within a specified interval of time. | |
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 | Completes an asynchronous operation to return a message-based response to a transmitted request. | |
IRequestChannel.RemoteAddress | Gets the remote address to which the request channel sends messages. | |
IRequestChannel.Request(Message) | Sends a message-based request and returns the correlated message-based response. | |
IRequestChannel.Request(Message, TimeSpan) | Sends a message-based request and returns the correlated message-based response within a specified interval of time. | |
IRequestChannel.Via | Gets the transport address to which the request is sent. |
Top
Remarks
If you need to call a service manually, that is, without the assistance of a generated proxy, use the ChannelFactory<TChannel> class instead of this class.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
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.