petrsvihlik/WopiHost

View on GitHub
sample/WopiHost.Validator/Infrastructure/ServiceCollectionExtensions.cs

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.Enrich.FromLogContext()
.WriteTo.Console()
sample/WopiHost/Program.cs on lines 10..16

Identical blocks of code found in 2 locations. Consider refactoring.
Open

services.AddHttpClient<IDiscoveryFileProvider, HttpDiscoveryFileProvider>((sp, client) =>
{
var wopiOptions = sp.GetRequiredService<IOptions<WopiOptions>>();
client.BaseAddress = wopiOptions.Value.ClientUrl;
});
sample/WopiHost.Web/Startup.cs on lines 33..37
Category
Status