예제 #1
0
 public static I ForAccessor <I>(string actorName, string instanceName) where I : class, IActor
 {
     Debug.Assert(typeof(I).Namespace.Contains("Accessor"), "Invalid resource call. Use only the accesor interface to access a resource.");
     return(Create <I>(Addressing.Accessor <I>(actorName), instanceName, null));
 }
예제 #2
0
 public static I ForAccessor <I>(string instanceName, Action <IHeaderAccessor> addHeaders, Action <IHeaderAccessor> getHeaders) where I : class, IActor
 {
     Debug.Assert(typeof(I).Namespace.Contains("Accessor"), "Invalid resource call. Use only the accesor interface to access a resource.");
     return(Create <I>(Addressing.Accessor <I>(), instanceName, addHeaders, getHeaders));
 }
예제 #3
0
 public static I ForComponent <I>(StatelessService caller) where I : class, IService
 {
     Debug.Assert(caller != null, "Invalid component call. Must supply stateless service caller.");
     return(Create <I>(Addressing.Component <I>(caller), null));
 }
예제 #4
0
 public static I ForMicroservice <I>(Action <IHeaderAccessor> addHeaders, Action <IHeaderAccessor> getHeaders) where I : class, IService
 {
     Debug.Assert(typeof(I).Namespace.Contains("Manager"), "Invalid microservice call. Use only the Manager interface to access a microservice.");
     return(Create <I>(Addressing.Microservice <I>(), addHeaders, getHeaders));
 }
예제 #5
0
 public static I ForMicroservice <I>() where I : class, IService
 {
     Debug.Assert(typeof(I).Namespace.Contains("Manager"), "Invalid microservice call. Use only the Manager interface to access a microservice.");
     return(Create <I>(Addressing.Microservice <I>(), null));
 }
예제 #6
0
 public static I ForNode <I>(string actorName, string instanceName, Actor caller) where I : class, IActor
 {
     Debug.Assert(caller != null, "Invalid node call. Must supply stateful actor caller.");
     return(Create <I>(Addressing.Node <I>(caller, actorName), instanceName, null));
 }