示例#1
0
 public void Dispose()
 {
     StreamPath.Reset();
     MessageEnvelope.Reset();
     ActorEndpoint.Reset();
     ActorAssembly.Reset();
 }
示例#2
0
 internal void Initialize(string id, IActorSystem system, ActorEndpoint endpoint, ActorPrototype prototype)
 {
     Id       = id;
     System   = system;
     Endpoint = endpoint;
     _        = prototype;
 }
示例#3
0
文件: Actor.cs 项目: supwar/Orleankka
 internal void Initialize(string id, IActorSystem system, ActorEndpoint endpoint, ActorPrototype prototype)
 {
     Id = id;
     System = system;
     Endpoint = endpoint;
     Proto = prototype;
 }
示例#4
0
        public void KeepAlive(ActorEndpoint endpoint)
        {
            if (timeout == TimeSpan.Zero)
                return;

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

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

            endpoint.DelayDeactivation(timeout);
        }
示例#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)));
        }
示例#10
0
 internal void Initialize(string id, IActorSystem system, ActorEndpoint endpoint)
 {
     Id       = id;
     System   = system;
     Endpoint = endpoint;
 }
示例#11
0
 internal TimerService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }
示例#12
0
 internal ReminderService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }
示例#13
0
 internal ActivationService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }
示例#14
0
 public void Dispose()
 {
     MessageEnvelope.Reset();
     ActorEndpoint.Reset();
     ActorType.Reset();
 }
示例#15
0
 internal void KeepAlive(ActorEndpoint endpoint)
 {
     gc.KeepAlive(endpoint);
 }
示例#16
0
 internal void KeepAlive(ActorEndpoint endpoint)
 {
     gc.KeepAlive(endpoint);
 }
示例#17
0
 public static ActorRef Deserialize(ActorPath path) => new ActorRef(path, ActorEndpoint.Proxy(path));
示例#18
0
 internal ReminderService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }
示例#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());
 }
示例#20
0
 internal ActivationService(ActorEndpoint endpoint)
 {
     this.endpoint = endpoint;
 }