Ejemplo n.º 1
0
 /// <summary>
 /// Gets the specified service Pipeline
 /// </summary>
 /// <param name="globalFeignClientPipeline"></param>
 /// <param name="serviceId"></param>
 /// <returns></returns>
 public static IFeignClientPipeline <object> Service(this IGlobalFeignClientPipeline globalFeignClientPipeline, string serviceId)
 {
     if (string.IsNullOrWhiteSpace(serviceId))
     {
         throw new ArgumentException(nameof(serviceId));
     }
     return(globalFeignClientPipeline.GetOrAddServicePipeline(serviceId));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the specified service Pipeline
 /// </summary>
 /// <param name="globalFeignClientPipeline"></param>
 /// <returns></returns>
 public static IFeignClientPipeline <TService> Service <TService>(this IGlobalFeignClientPipeline globalFeignClientPipeline)
 {
     return(globalFeignClientPipeline.GetOrAddServicePipeline <TService>());
 }