Class NetComponent
Syntax
[Component(null, typeof(NetInputAttribute), typeof(NetOutputAttribute), typeof(NetOutput<>), Multiplicity.Any, Multiplicity.OneOrMore, null, false)]
public class NetComponent : IRunnableComponent
Constructors
NetComponent(ActorRef, Scheduler, Dictionary<ActorRef, NetComponent>)
Declaration
public NetComponent(ActorRef actorRef, Scheduler scheduler, Dictionary<ActorRef, NetComponent> actorSockets)
Parameters
Methods
Register<TData>(Action<NetContext<TData>>)
Declaration
public void Register<TData>(Action<NetContext<TData>> action)
where TData : class
Parameters
Type Parameters
RegisterOpenGeneric<TData>(Action<NetContext<TData>>)
Declaration
public void RegisterOpenGeneric<TData>(Action<NetContext<TData>> action)
where TData : class
Parameters
Type Parameters
Send<TData>(List<ActorRef>, TData)
If the same message is sent to many actors, make sure to use this call instead,
as there may be some mechanisms tracking the generated message for pooling purpose.
Declaration
public void Send<TData>(List<ActorRef> destinations, TData data)
where TData : class
Parameters
Type |
Name |
Description |
List<ActorRef> |
destinations |
|
TData |
data |
|
Type Parameters
Send<TData>(ActorRef, TData)
Declaration
public void Send<TData>(ActorRef destination, TData data)
where TData : class
Parameters
Type |
Name |
Description |
ActorRef |
destination |
|
TData |
data |
|
Type Parameters
Tick(TimeSpan, CancellationToken)
Declaration
public bool Tick(TimeSpan endTime, CancellationToken token)
Parameters
Returns
Implements