❔ How to use new dll during app build?
I have a
Configure Configure method that runs during the start of the service. The method looks like this:public class ServicesConfiguration
: IServicesConfiguration
{
public void Configure(
HostBuilderContext hostContext,
IServiceCollection services )
{
services
.AddArchiveClient()
.AddSegmentStorageDepartmentServiceClient()
.AddSegmentStorageSubjectServiceClient()
.AddSegmentStorageTerritoryServiceClient()
.AddSegmentStorageProductionCalendarServiceClient()
.AddSegmentStorageWorktimeServiceClient()
.AddSingleton<EventsNormalizerFactory>()
.AddSingleton<DataSetGenerator>()
.AddSingleton<IReportTemplate, ArbitraryPeriod.ReportTemplate>()
.AddSingleton<IReportTemplate, LateForWork.ReportTemplate>()
.AddSingleton<IReportTemplate, Monthly.ReportTemplate>()
.AddSingleton<IReportTemplate, VariablePeriod.ReportTemplate>()
.AddSingleton<IReportTemplate, Weekly.ReportTemplate>();
}
}public class ServicesConfiguration
: IServicesConfiguration
{
public void Configure(
HostBuilderContext hostContext,
IServiceCollection services )
{
services
.AddArchiveClient()
.AddSegmentStorageDepartmentServiceClient()
.AddSegmentStorageSubjectServiceClient()
.AddSegmentStorageTerritoryServiceClient()
.AddSegmentStorageProductionCalendarServiceClient()
.AddSegmentStorageWorktimeServiceClient()
.AddSingleton<EventsNormalizerFactory>()
.AddSingleton<DataSetGenerator>()
.AddSingleton<IReportTemplate, ArbitraryPeriod.ReportTemplate>()
.AddSingleton<IReportTemplate, LateForWork.ReportTemplate>()
.AddSingleton<IReportTemplate, Monthly.ReportTemplate>()
.AddSingleton<IReportTemplate, VariablePeriod.ReportTemplate>()
.AddSingleton<IReportTemplate, Weekly.ReportTemplate>();
}
}