Class RPCEvent
Handles BSON packaging for the RPC calls and used by RPCManager
Inheritance
System.Object
RPCEvent
Assembly: Eco.Shared.dll
Syntax
public sealed class RPCEvent : ValueType
Constructors
RPCEvent(String, INetObject, INetClient, Object[])
Declaration
public RPCEvent(string methodName, INetObject obj, INetClient target, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
methodName |
|
INetObject |
obj |
|
INetClient |
target |
|
System.Object[] |
args |
|
Fields
Bson
Declaration
Field Value
Obj
Declaration
Field Value
Target
Declaration
Field Value
Properties
MethodName
Declaration
public string MethodName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Send()
Declaration
SendAsync()
Declaration
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
SendAsync<T>()
Declaration
public Task<T> SendAsync<T>()
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters
SendNow()
Declaration
SendNowAsync()
Declaration
public Task SendNowAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
SendNowAsync<T>()
Declaration
public Task<T> SendNowAsync<T>()
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters
WithCallback(Action)
Declaration
public RPCEvent WithCallback(Action callback)
Parameters
Type |
Name |
Description |
System.Action |
callback |
|
Returns
WithCallback<T>(Action<T>)
Declaration
public RPCEvent WithCallback<T>(Action<T> callback)
Parameters
Type |
Name |
Description |
System.Action<T> |
callback |
|
Returns
Type Parameters
Extension Methods