public static void UseSdnugMiddleware(this IAppBuilder app, SdnugMiddlewareOptions options = null) { options = options ?? new SdnugMiddlewareOptions(); app.Use<SdnugMiddlewareComponent>(options); }
public SdnugMiddlewareComponent(AppFunc next, SdnugMiddlewareOptions options) { _next = next; _options = options; }