Exemplo n.º 1
0
        public T GetService <T>() where T : ActorRef
        {
            var    refTypeName = typeof(T).Name;
            string name        = refTypeName.Substring(0, refTypeName.Length - 3);

            return((T)Global.GetActorRef(typeof(T), name, null, Global.Host));
        }
Exemplo n.º 2
0
        public T GetService <T>() where T : ActorRef
        {
            var    tname     = typeof(T).Name;
            string actorName = tname.Substring(0, tname.Length - 3);

            return((T)Global.GetActorRef(typeof(T), actorName, this, Global.Host));
        }
Exemplo n.º 3
0
 public T GetActorRef <T>(string name) where T : ActorRef
 {
     return((T)Global.GetActorRef(typeof(T), name, null, Global.Host));
 }
Exemplo n.º 4
0
 public T GetAvatar <T>(string uid) where T : ActorRef
 {
     return((T)Global.GetActorRef(typeof(T), uid, null, Global.Host));
 }
Exemplo n.º 5
0
 public ActorRef GetActorRef(Type refType, string actorName)
 {
     return(Global.GetActorRef(refType, actorName, this, Global.Host));
 }
Exemplo n.º 6
0
 public T GetActorRef <T>(string actorName) where T : ActorRef
 {
     return((T)Global.GetActorRef(typeof(T), actorName, this, Global.Host));
 }
Exemplo n.º 7
0
 public virtual ActorRef ActorRef()
 {
     return(Global.GetActorRef(Global.TypeManager.GetActorRefType(this.GetType().Name), this.UniqueName, this, Global.Host));
 }
Exemplo n.º 8
0
 public T GetService <T>(string name) where T : ActorRef
 {
     return((T)Global.GetActorRef(typeof(T), name, this, Global.Host));
 }