Пример #1
0
        public static IAppBuilder UseClaimsTransformation(this IAppBuilder appBuilder, ClaimsTransformationOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            appBuilder.Use(typeof(ClaimsTransformationMiddleware), options);

            return(appBuilder);
        }
 public ClaimsTransformationMiddleware(Func <IDictionary <string, object>, Task> next, ClaimsTransformationOptions options)
 {
     _options = options;
     _next    = next;
 }