Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Make IConfiguration dependency an optional parameter in the AddApplicationInsightsTelemetry method #76

Closed
olegsych opened this issue May 13, 2015 · 1 comment

Comments

@olegsych
Copy link
Member

... because it requires adding non-trivial code to a WebAPI project, which, out of the box looks like this:

public class Startup
{
    public Startup(IHostingEnvironment env) {
    }
    public void ConfigureServices(IServiceCollection services) {
        services.AddMvc();
    }
    public void Configure(IApplicationBuilder app, IHostingEnvironment env) {
        app.UseStaticFiles();
        app.UseMvc();
    }
}
@dnduffy
Copy link
Member

dnduffy commented May 16, 2017

This has been done.

@dnduffy dnduffy closed this as completed May 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants