Anarchy/AnarchyMiddleware.cs
///<summary>
///Extension method to add the AnarchyMiddleware to the IApplicationBuilder interface.
///</summary>
Extension method to add the AnarchyMiddleware to the IApplicationBuilder interface.
Extension method to add the AnarchyMiddleware to the IApplicationBuilder interface .
public static IApplicationBuilder UseAnarchy(
            this IApplicationBuilder builder, Action<AnarchyConfig> configure)
        {
            var anarchyConfig = new AnarchyConfig();
            configure(anarchyConfig);
            return builder.UseMiddleware<AnarchyMiddleware>(anarchyConfig);
        }
public static IApplicationBuilder UseAnarchy ( this IApplicationBuilder builder , Action < AnarchyConfig > configure ) { var anarchyConfig = new AnarchyConfig ( ) ; configure ( anarchyConfig ) ; return builder . UseMiddleware < AnarchyMiddleware > ( anarchyConfig ) ; }
Extension method to add the AnarchyMiddleware to the IApplicationBuilder interface.
Extension method to add the AnarchyMiddleware to the IApplicationBuilder interface .
IApplicationBuilder
this
configure
Action<AnarchyConfig>