Пример #1
0
 public StolenAlertEFRepository(OTRSClientRest OTRSClientRest,
                                OTRSContext OTRSContext, IOptionsMonitor <OTRSOptions> OTRSOptions)
 {
     _OTRSClientRest = OTRSClientRest;
     _OTRSContext    = OTRSContext;
     _OTRSOptions    = OTRSOptions.CurrentValue;
 }
Пример #2
0
        public SmtpService(IWebHostEnvironment env,

                           IOptions <EmailSettings> emailSettings,
                           IOptions <TicketSettings> ticketSettings,
                           IOptionsMonitor <OTRSOptions> OTRSOptions,
                           ISenderEmailRepository senderEmailRepository)
        {
            _emailSettings         = emailSettings.Value;
            _ticketSettings        = ticketSettings.Value;
            _OTRSOptions           = OTRSOptions.CurrentValue;
            _env                   = env;
            _senderEmailRepository = senderEmailRepository;
        }
Пример #3
0
 public AssetEFRepository(OTRSContext OTRSContext, IOptionsMonitor <OTRSOptions> OTRSOpions)
 {
     _OTRSContext = OTRSContext;
     _OTRSOpions  = OTRSOpions.CurrentValue;
 }