public static IApplicationBuilder ConfigureApllication(this IApplicationBuilder app) { app.UseRabbitMq(); app.AddCorsApllication() .UseResponseCompression() .UseSimpleOAuth(); return(app); }