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