예제 #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));
 }