다음을 통해 공유


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
Protected methodSupported by Silverlight for Windows Phone ClientBase<TChannel>.ChannelBase<T> Initializes a new instance of the ClientBase<TChannel> class from an existing instance of the class.

Top

Methods

  Name Description
Protected methodSupported by Silverlight for Windows Phone BeginInvoke Starts an asynchronous call of a specified method by name.
Protected methodSupported by Silverlight for Windows Phone EndInvoke Completes an asynchronous invocation by name of a specified method.
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone 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.)
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IChannel.GetProperty<TProperty> Returns a typed object requested, if present, from the appropriate layer in the channel stack.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone 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.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IClientChannel.BeginDisplayInitializationUI An asynchronous call to begin using a user interface to obtain credential information.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IClientChannel.DidInteractiveInitialization Gets a value that indicates whether a call was done to a user interface to obtain credential information.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IClientChannel.DisplayInitializationUI A call to a user interface to obtain credential information.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IClientChannel.EndDisplayInitializationUI Called when the call to BeginDisplayInitializationUI has finished.
Explicit interface implemetationPrivate event IClientChannel.UnknownMessageReceived This is a reserved event.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IClientChannel.Via Gets the URI that contains the transport address to which messages are sent on the client channel.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.Abort Causes a communication object to transition immediately from its current state into the closed state.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.BeginClose(AsyncCallback, Object) Begins an asynchronous operation to close a communication object.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to close a communication object with a specified time-out.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.BeginOpen(AsyncCallback, Object) Begins an asynchronous operation to open a communication object.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to open a communication object within a specified interval of time.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.Close() Causes a communication object to transition from its current state into the closed state.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.Close(TimeSpan) Causes a communication object to transition from its current state into the closed state.
Explicit interface implemetationPrivate event ICommunicationObject.Closed The event handler that is invoked when the ClientBase object has transitioned from its current state to the closed state.
Explicit interface implemetationPrivate event ICommunicationObject.Closing The event handler that is invoked when the ClientBase object transitions from its current state to the closed state.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.EndClose Completes an asynchronous operation to close a communication object.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.EndOpen Completes an asynchronous operation to open a communication object.
Explicit interface implemetationPrivate event ICommunicationObject.Faulted The event handler that is invoked when a fault occurs while performing an operation on the ClientBase object.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.Open() Causes a communication object to transition from the created state into the opened state.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone ICommunicationObject.Open(TimeSpan) Causes a communication object to transition from the created state into the opened state within a specified interval of time.
Explicit interface implemetationPrivate event ICommunicationObject.Opened The event handler that is invoked when the ClientBase object has transitioned from the created state to the opened state.
Explicit interface implemetationPrivate event ICommunicationObject.Opening The event handler that is invoked when the ClientBase object transitions from the created state to the opened state.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone ICommunicationObject.State Gets the current state of the communication-oriented object.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IContextChannel.AllowOutputBatching Gets or sets a value that instructs Silverlight 5 to store a set of messages before giving the messages to the transport.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IContextChannel.InputSession Gets the input session for the channel.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IContextChannel.LocalAddress Gets the local endpoint for the channel.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IContextChannel.OperationTimeout Gets or sets the time period within which an operation must complete or an exception is thrown.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IContextChannel.OutputSession Gets the output session associated with the channel, if any.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IContextChannel.RemoteAddress Gets the remote address associated with the channel.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IContextChannel.SessionId Returns an identifier for the current session, if any.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IDisposable.Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources associated with the channel.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IExtensibleObject<IContextChannel>.Extensions Gets a collection of extension objects for this extensible object.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IOutputChannel.BeginSend(Message, AsyncCallback, Object) Begins an asynchronous operation to transmit a message to the destination of the output channel.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone 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.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IOutputChannel.EndSend Completes an asynchronous operation to transmit a message to the destination of the output channel.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IOutputChannel.RemoteAddress Gets the destination of the service to which messages are sent out on the output channel.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IOutputChannel.Send(Message) Transmits a message to the destination of the output channel.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IOutputChannel.Send(Message, TimeSpan) Sends a message on the current output channel within a specified interval of time.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IOutputChannel.Via Gets the URI that contains the transport address to which messages are sent on the output channel.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IRequestChannel.BeginRequest(Message, AsyncCallback, Object) Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone 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.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IRequestChannel.EndRequest Completes an asynchronous operation to return a message-based response to a transmitted request.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone IRequestChannel.RemoteAddress Gets the remote address to which the request channel sends messages.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IRequestChannel.Request(Message) Sends a message-based request and returns the correlated message-based response.
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IRequestChannel.Request(Message, TimeSpan) Sends a message-based request and returns the correlated message-based response within a specified interval of time.
Explicit interface implemetationPrivate propertySupported by Silverlight for Windows Phone 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.

See Also

Reference