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)); }
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)); }
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)); }
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)); }
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)); }
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)); }