public MensagemController(OperacionalContext context, IOptionsSnapshot <OperacionalSettings> settings, IOperacionalIntegrationEventService operacionalIntegrationEventService, IStringLocalizer <MensagemController> localizer) { _operacionalContext = context ?? throw new ArgumentNullException(nameof(context)); _operacionalIntegrationEventService = operacionalIntegrationEventService ?? throw new ArgumentNullException(nameof(operacionalIntegrationEventService)); _settings = settings.Value; _localizer = localizer; }
public SetorController(OperacionalContext context, IOptionsSnapshot <OperacionalSettings> settings, IOperacionalIntegrationEventService setorIntegrationEventService) { _setorContext = context ?? throw new ArgumentNullException(nameof(context)); _setorIntegrationEventService = setorIntegrationEventService ?? throw new ArgumentNullException(nameof(setorIntegrationEventService)); _settings = settings.Value; ((DbContext)context).ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; }