public void ConfigureServices(IServiceCollection services) { services.AddScoped <IVehicleJourneyMapper, VehicleJourneyMapper>(); QueryServiceBackEndDependencyInjection.Register(services); CommonStorageDepedencyInjection.Register(services); services.AddMvc() .AddJsonOptions(x => { x.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc; x.SerializerSettings.DateFormatHandling = DateFormatHandling.IsoDateFormat; }) .SetCompatibilityVersion(CompatibilityVersion.Version_2_2); }
public static void Register(IServiceCollection serviceCollection) { serviceCollection.AddScoped <IMessageReceiverService, MessageReceiverService>(); serviceCollection.AddScoped <IMessageProcessingService, MessageProcessingService>(); CommonStorageDepedencyInjection.Register(serviceCollection); }