Beispiel #1
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));
 }
Beispiel #2
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));
 }