src/Blockchain.Investments.Api/Startup.cs
Method ConfigureServices
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void ConfigureServices(IServiceCollection services)
{
// Register the IConfiguration instance which AppConfig binds against.
services.Configure<AppConfig>(Configuration);
Method Configure
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
//string currentUrl = app.ServerFeatures.Get<Microsoft.AspNetCore.Hosting.Server.Features.IServerAddressesFeature>().Addresses.Single();
loggerFactory.AddConsole(Configuration.GetSection("Logging"));