Show / Hide Table of Contents

Class RPCEvent

Handles BSON packaging for the RPC calls and used by RPCManager

Inheritance
System.Object
RPCEvent
Namespace: Eco.Shared.Networking
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
public BSONObject Bson
Field Value
Type Description
BSONObject

Obj

Declaration
public INetObject Obj
Field Value
Type Description
INetObject

Target

Declaration
public INetClient Target
Field Value
Type Description
INetClient

Properties

MethodName

Declaration
public string MethodName { get; }
Property Value
Type Description
System.String

Methods

Send()

Declaration
public void Send()

SendAsync()

Declaration
public Task SendAsync()
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
Name Description
T

SendNow()

Declaration
public void SendNow()

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
Name Description
T

WithCallback(Action)

Declaration
public RPCEvent WithCallback(Action callback)
Parameters
Type Name Description
System.Action callback
Returns
Type Description
RPCEvent

WithCallback<T>(Action<T>)

Declaration
public RPCEvent WithCallback<T>(Action<T> callback)
Parameters
Type Name Description
System.Action<T> callback
Returns
Type Description
RPCEvent
Type Parameters
Name Description
T

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾