Created
March 19, 2018 21:36
-
-
Save thiagoloureiro/55678f27a80b0e778e49546af92ae736 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc(); | |
services.AddHystrix(); | |
services.Configure<HystrixOptions>(options => Configuration.GetSection("Hystrix").Bind(options)); | |
} | |
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. | |
public void Configure(IApplicationBuilder app, IHostingEnvironment env) | |
{ | |
if (env.IsDevelopment()) | |
{ | |
app.UseDeveloperExceptionPage(); | |
} | |
app.UseMvc(); | |
app.UseHystrixMetricsEndpoint("hystrix.stream"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment