コード例 #1
0
 public Builder(PrincipalProvider <T> principalProvider)
 {
     _principalProvider = principalProvider;
 }
コード例 #2
0
 public Pipe(PrincipalProvider <T> principalProvider, IPipe <T> next)
 {
     _principalProvider = principalProvider;
     _next = next;
 }
コード例 #3
0
        /// <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)));
        }