C# Class RemotingSamples.Client

Datei anzeigen Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
ByRefCallBack ( IAsyncResult ar ) : void

Callback handler used in ClientInvokeMethod().

ByValCallBack ( IAsyncResult ar ) : void
Client ( ChannelKind ChanKind, Type ObjType, CallingConvention CallConv, InvokeKind InvKind, string Host ) : System

Only constructor.

ClientInvoke ( object RemoteObj ) : void

Sequential invocation method.

ClientInvokeAsync ( object RemoteObj ) : void

Used by AsyncClient.Run() to invoke the proxy method repeatedly.

RegisterBackPortChannels ( ) : void
Run ( ) : void

The main execution code for invoking the server. - Opens the specified channel. - Creates the proxy object. - Calls ClientInvokeMethod or ClientInvokeMethodAsync to invoke the output method on the proxy.

UnregisterBackPortChannels ( ) : void

Method Details

ByRefCallBack() public method

Callback handler used in ClientInvokeMethod().
public ByRefCallBack ( IAsyncResult ar ) : void
ar IAsyncResult
return void

ByValCallBack() public method

public ByValCallBack ( IAsyncResult ar ) : void
ar IAsyncResult
return void

Client() public method

Only constructor.
public Client ( ChannelKind ChanKind, Type ObjType, CallingConvention CallConv, InvokeKind InvKind, string Host ) : System
ChanKind ChannelKind
ObjType System.Type
CallConv CallingConvention
InvKind InvokeKind
Host string
return System

ClientInvoke() public method

Sequential invocation method.
public ClientInvoke ( object RemoteObj ) : void
RemoteObj object
return void

ClientInvokeAsync() public method

Used by AsyncClient.Run() to invoke the proxy method repeatedly.
public ClientInvokeAsync ( object RemoteObj ) : void
RemoteObj object
return void

RegisterBackPortChannels() static public method

static public RegisterBackPortChannels ( ) : void
return void

Run() public method

The main execution code for invoking the server. - Opens the specified channel. - Creates the proxy object. - Calls ClientInvokeMethod or ClientInvokeMethodAsync to invoke the output method on the proxy.
public Run ( ) : void
return void

UnregisterBackPortChannels() static public method

static public UnregisterBackPortChannels ( ) : void
return void