public Detector() { _dataRequest = ContainerHolder.Container.Resolve <IDataRequest>(); _mailNotifier = ContainerHolder.Container.Resolve <IMailNotifier>(); _dataRequest.NewDataReceived += onNewDataReceived; _dataRequest.SetInterval(TimeSpan.FromMinutes(1)); }
public Facade(IDatabase database, IConfiguration configuration, IPasswordManager passwordManager, ISecurityTokenService securityTokenService, IMailNotifier mailNotifier, IDocumentStore documentStore) { _database = database; _configuration = configuration; _passwordManager = passwordManager; _securityTokenService = securityTokenService; _mailNotifier = mailNotifier; _documentStore = documentStore; }