예제 #1
0
        protected Actor(string id, IActorRuntime runtime, Dispatcher dispatcher = null) : this()
        {
            Requires.NotNull(runtime, nameof(runtime));
            Requires.NotNullOrWhitespace(id, nameof(id));

            Runtime    = runtime;
            Dispatcher = dispatcher ?? ActorType.Dispatcher(GetType());
            Path       = GetType().ToActorPath(id);
        }
예제 #2
0
파일: Actor.cs 프로젝트: pkese/Orleankka
 /// <summary>
 /// Provided only for unit-testing purposes
 /// </summary>
 protected Actor(string id = null, IActorRuntime runtime = null, Dispatcher dispatcher = null) : this()
 {
     Runtime    = runtime;
     Dispatcher = dispatcher ?? ActorType.Dispatcher(GetType());
     Path       = GetType().ToActorPath(id ?? Guid.NewGuid().ToString("N"));
 }