Пример #1
0
        public static IApplicationBuilder UseMorphius(this IApplicationBuilder app, Action <MorphiusOptions> config)
        {
            var data = new MorphiusOptions();

            config(data);
            return(app.UseMiddleware <Morphius>(data));
        }
Пример #2
0
 public Morphius(RequestDelegate next, MorphiusOptions options)
 {
     _next    = next;
     _options = options;
 }