public Builder(PrincipalProvider <T> principalProvider) { _principalProvider = principalProvider; }
public Pipe(PrincipalProvider <T> principalProvider, IPipe <T> next) { _principalProvider = principalProvider; _next = next; }
/// <summary> </summary> public static IBuilder <TIn, TOut> UsePrincipalProvider <TIn, TOut>(this IBuilder <TIn, TOut> builder, PrincipalProvider <TOut> principalProvider) { if (principalProvider == null) { throw new ArgumentNullException(nameof(principalProvider)); } return(builder.Use(new Builder <TOut>(principalProvider))); }