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