public void Dispose() { StreamPath.Reset(); MessageEnvelope.Reset(); ActorEndpoint.Reset(); ActorAssembly.Reset(); }
internal void Initialize(string id, IActorSystem system, ActorEndpoint endpoint, ActorPrototype prototype) { Id = id; System = system; Endpoint = endpoint; _ = prototype; }
internal void Initialize(string id, IActorSystem system, ActorEndpoint endpoint, ActorPrototype prototype) { Id = id; System = system; Endpoint = endpoint; Proto = prototype; }
public void KeepAlive(ActorEndpoint endpoint) { if (timeout == TimeSpan.Zero) return; endpoint.DelayDeactivation(timeout); }
public ActorRef(SerializationInfo info, StreamingContext context) { var value = (string)info.GetValue("path", typeof(string)); path = ActorPath.Deserialize(value); endpoint = ActorEndpoint.Proxy(path); }
internal ActorRuntime(IActorSystem system, ActorEndpoint endpoint) { System = system; Timers = new TimerService(endpoint); Reminders = new ReminderService(endpoint); Activation = new ActivationService(endpoint); }
public void KeepAlive(ActorEndpoint endpoint) { if (timeout == TimeSpan.Zero) { return; } endpoint.DelayDeactivation(timeout); }
ActorRef IActorSystem.ActorOf(ActorPath path) { if (path == ActorPath.Empty) { throw new ArgumentException("ActorPath is empty", "path"); } return(new ActorRef(path, ActorEndpoint.Invoker(path))); }
internal void Initialize(string id, IActorSystem system, ActorEndpoint endpoint) { Id = id; System = system; Endpoint = endpoint; }
internal TimerService(ActorEndpoint endpoint) { this.endpoint = endpoint; }
internal ReminderService(ActorEndpoint endpoint) { this.endpoint = endpoint; }
internal ActivationService(ActorEndpoint endpoint) { this.endpoint = endpoint; }
public void Dispose() { MessageEnvelope.Reset(); ActorEndpoint.Reset(); ActorType.Reset(); }
internal void KeepAlive(ActorEndpoint endpoint) { gc.KeepAlive(endpoint); }
public static ActorRef Deserialize(ActorPath path) => new ActorRef(path, ActorEndpoint.Proxy(path));
public ActorRef(SerializationInfo info, StreamingContext context) { path = ActorPath.From((string)info.GetValue("path", typeof(string))); invoker = ActorEndpoint.Invoker(path); endpoint = invoker.GetProxy(path.ToString()); }