/// <summary> /// Loads the Storage Provider and attempts call its LoadEventStore() function /// </summary> /// <param name="storageProvider">An instance of an IEventStorageProvider</param> /// <returns></returns> public EventClient FromStorage(IEventStorageProvider storageProvider) { _storageProvider = storageProvider; //try getting the EventStore _eventStore = _storageProvider.LoadEventStore(); return this; }
/// <summary> /// Loads the Event History of the current user /// </summary> /// <param name="eventStore">The event store loaded from storage</param> /// <returns></returns> public EventClient LoadHistory(EventStore eventStore) { if (eventStore != null) { _eventStore = eventStore; } return this; }
private EventClient() { _rules = new List<RuleSet>(); _eventStore = new EventStore(); }
private EventClient() { _rules = new List <RuleSet>(); _eventStore = new EventStore(); }