public Startup(ILoggerFactory logger, IHostingEnvironment environemnt, IConfiguration configuration) { Logger = logger.CreateLogger <Startup>(); Environemnt = environemnt; Configuration = configuration; //local system configuration SystemLocalConfiguration = LocalConfiguration.Create(new Dictionary <string, string>() { { nameof(SystemLocalConfiguration.CacheServer), Configuration.GetValue <string>(Identifiers.CacheServer) }, { nameof(SystemLocalConfiguration.CacheDBVehicles), Configuration.GetValue <string>(Identifiers.CacheDBVehicles) }, { nameof(SystemLocalConfiguration.MessagesMiddleware), Configuration.GetValue <string>(Identifiers.MessagesMiddleware) }, { nameof(SystemLocalConfiguration.MiddlewareExchange), Configuration.GetValue <string>(Identifiers.MiddlewareExchange) }, { nameof(SystemLocalConfiguration.MessagePublisherRoute), Configuration.GetValue <string>(Identifiers.MessagePublisherRoute) }, { nameof(SystemLocalConfiguration.MessagesMiddlewareUsername), Configuration.GetValue <string>(Identifiers.MessagesMiddlewareUsername) }, { nameof(SystemLocalConfiguration.MessagesMiddlewarePassword), Configuration.GetValue <string>(Identifiers.MessagesMiddlewarePassword) }, }); }