Esempio n. 1
0
        /// <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;
        }
Esempio n. 2
0
        /// <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;
        }
Esempio n. 3
0
 private EventClient()
 {
     _rules = new List<RuleSet>();
     _eventStore = new EventStore();
 }
Esempio n. 4
0
 private EventClient()
 {
     _rules      = new List <RuleSet>();
     _eventStore = new EventStore();
 }