public ProdutoController(ProdutoContext context, IOptionsSnapshot <ProdutoSettings> settings, IProdutoIntegrationEventService produtoIntegrationEventService)
        {
            _produtoContext = context ?? throw new ArgumentNullException(nameof(context));
            _produtoIntegrationEventService = produtoIntegrationEventService ?? throw new ArgumentNullException(nameof(produtoIntegrationEventService));
            _settings = settings.Value;

            ((DbContext)context).ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
        }
Exemplo n.º 2
0
 public RevistasController(ProdutoContext context, IProdutoIntegrationEventService produtoIntegrationEventService)
 {
     _context = context;
     _produtoIntegrationEventService = produtoIntegrationEventService;
 }