public ModuloController(ModuloContext context, IOptionsSnapshot <ModuloSettings> settings, IModuloIntegrationEventService moduloIntegrationEventService) { _moduloContext = context ?? throw new ArgumentNullException(nameof(context)); _moduloIntegrationEventService = moduloIntegrationEventService ?? throw new ArgumentNullException(nameof(moduloIntegrationEventService)); _settings = settings.Value; //((DbContext)context).ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; }
public EmpresaInclusaoIntegrationEventHandler(ModuloContext setorContext, IModuloIntegrationEventService setorIntegrationEventService) { _setorContext = setorContext; _setorIntegrationEventService = setorIntegrationEventService; }