Skip to content

Commit

Permalink
Configured IExcelConverterService in dependency injector as a singlet…
Browse files Browse the repository at this point in the history
…on service
  • Loading branch information
Darnley Costa committed Jan 19, 2019
1 parent 9c3ee36 commit 1b20e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Converter.Presentation.Web.Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);

services.AddScoped<IExcelConverterService, ExcelConverterService>();
services.AddSingleton<IExcelConverterService, ExcelConverterService>();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
Expand Down

0 comments on commit 1b20e93

Please sign in to comment.