C# Class ChatterBox.Client.Universal.Background.Helpers.AppServiceChannelHelper

Show file Open project: openpeer/ChatterBox

Public Methods

Method Description
HandleRequest ( AppServiceRequest request, object handler, string message ) : void

Invokes the method from the message on the handler object and sends back the return value

InvokeChannel ( this connection, Type contractType, object argument, string method ) : ValueSet

Sends a new message using the AppServiceConnection, containing the contract name, the method name and the serialized argument

InvokeChannel ( this connection, Type contractType, object argument, string method, Type responseType ) : object

Sends a new message using the AppServiceConnection, containing the contract name, the method name and the serialized argument. The response is deserialized as a object based on the specified response type

Private Methods

Method Description
SendResponse ( AppServiceRequest request, InvocationResult result ) : System.Threading.Tasks.Task

Serializes and sends the response for the AppServiceRequest

Method Details

HandleRequest() public static method

Invokes the method from the message on the handler object and sends back the return value
public static HandleRequest ( AppServiceRequest request, object handler, string message ) : void
request AppServiceRequest
handler object
message string
return void

InvokeChannel() public static method

Sends a new message using the AppServiceConnection, containing the contract name, the method name and the serialized argument
public static InvokeChannel ( this connection, Type contractType, object argument, string method ) : ValueSet
connection this
contractType System.Type
argument object
method string
return ValueSet

InvokeChannel() public static method

Sends a new message using the AppServiceConnection, containing the contract name, the method name and the serialized argument. The response is deserialized as a object based on the specified response type
public static InvokeChannel ( this connection, Type contractType, object argument, string method, Type responseType ) : object
connection this
contractType System.Type
argument object
method string
responseType System.Type
return object