public User(IWebAPI.IUserActions userActions, IDataStore dataStore, ILogger logger) { this.userActions = userActions; this.dataStore = dataStore; this.logger = logger; // -- Event Watchers // Flush models on logout RoarManager.loggedOutEvent += () => { dataStore.Clear(true); }; // Watch for initial inventory ready event, then watch for any // subsequent `change` events RoarManager.inventoryReadyEvent += () => CacheFromInventory(); }
public Data(IWebAPI.IUserActions user_actions, IDataStore data_store, ILogger logger) { user_actions_ = user_actions; data_store_ = data_store; logger_ = logger; }