Ejemplo n.º 1
0
 public void Dispose()
 {
     StreamPath.Reset();
     MessageEnvelope.Reset();
     ActorEndpoint.Reset();
     ActorAssembly.Reset();
 }
Ejemplo n.º 2
0
 internal void Initialize(string id, IActorSystem system, ActorEndpoint endpoint, ActorPrototype prototype)
 {
     Id       = id;
     System   = system;
     Endpoint = endpoint;
     _        = prototype;
 }
Ejemplo n.º 3
0
 internal void Initialize(string id, IActorSystem system, ActorEndpoint endpoint, ActorPrototype prototype)
 {
     Id = id;
     System = system;
     Endpoint = endpoint;
     Proto = prototype;
 }
Ejemplo n.º 4
0
        public void KeepAlive(ActorEndpoint endpoint)
        {
            if (timeout == TimeSpan.Zero)
                return;

            endpoint.DelayDeactivation(timeout);
        }
Ejemplo n.º 5
0
        public ActorRef(SerializationInfo info, StreamingContext context)
        {
            var value = (string)info.GetValue("path", typeof(string));

            path     = ActorPath.Deserialize(value);
            endpoint = ActorEndpoint.Proxy(path);
        }
Ejemplo n.º 6
0
 internal ActorRuntime(IActorSystem system, ActorEndpoint endpoint)
 {
     System      = system;
     Timers      = new TimerService(endpoint);
     Reminders   = new ReminderService(endpoint);
     Activation  = new ActivationService(endpoint);
 }
Ejemplo n.º 7
0
 internal ActorRuntime(IActorSystem system, ActorEndpoint endpoint)
 {
     System     = system;
     Timers     = new TimerService(endpoint);
     Reminders  = new ReminderService(endpoint);
     Activation = new ActivationService(endpoint);
 }
Ejemplo n.º 8
0
        public void KeepAlive(ActorEndpoint endpoint)
        {
            if (timeout == TimeSpan.Zero)
            {
                return;
            }

            endpoint.DelayDeactivation(timeout);
        }
Ejemplo n.º 9
0
        ActorRef IActorSystem.ActorOf(ActorPath path)
        {
            if (path == ActorPath.Empty)
            {
                throw new ArgumentException("ActorPath is empty", "path");
            }

            return(new ActorRef(path, ActorEndpoint.Invoker(path)));
        }
Ejemplo n.º 10
0
 internal void Initialize(string id, IActorSystem system, ActorEndpoint endpoint)
 {
     Id       = id;
     System   = system;
     Endpoint = endpoint;
 }
Ejemplo n.º 11
0
 internal TimerService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }
Ejemplo n.º 12
0
 internal ReminderService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }
Ejemplo n.º 13
0
 internal ActivationService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }
Ejemplo n.º 14
0
 public void Dispose()
 {
     MessageEnvelope.Reset();
     ActorEndpoint.Reset();
     ActorType.Reset();
 }
Ejemplo n.º 15
0
 internal void KeepAlive(ActorEndpoint endpoint)
 {
     gc.KeepAlive(endpoint);
 }
Ejemplo n.º 16
0
 internal void KeepAlive(ActorEndpoint endpoint)
 {
     gc.KeepAlive(endpoint);
 }
Ejemplo n.º 17
0
 public static ActorRef Deserialize(ActorPath path) => new ActorRef(path, ActorEndpoint.Proxy(path));
Ejemplo n.º 18
0
 internal ReminderService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }
Ejemplo n.º 19
0
 public ActorRef(SerializationInfo info, StreamingContext context)
 {
     path     = ActorPath.From((string)info.GetValue("path", typeof(string)));
     invoker  = ActorEndpoint.Invoker(path);
     endpoint = invoker.GetProxy(path.ToString());
 }
Ejemplo n.º 20
0
 internal ActivationService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }