Esempio n. 1
0
 public static RestInfo GetRestInfo <T>(this IRestInfoFactory factory)
 {
     _ = factory ?? throw new ArgumentNullException(nameof(factory));
     return(factory.GetRestInfo(typeof(T)));
 }
Esempio n. 2
0
 public static RestInfo GetRestInfo(this IRestInfoFactory factory, Type callerType)
 {
     _ = factory ?? throw new ArgumentNullException(nameof(factory));
     _ = callerType ?? throw new ArgumentNullException(nameof(callerType));
     return(factory.GetRestInfo(callerType.FullName));
 }