public static RestInfo GetRestInfo <T>(this IRestInfoFactory factory) { _ = factory ?? throw new ArgumentNullException(nameof(factory)); return(factory.GetRestInfo(typeof(T))); }
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)); }