Fire() public method

public Fire ( string eventName ) : void
eventName string
return void
Ejemplo n.º 1
0
        /// <summary>
        /// Fires an event with the given Name
        /// </summary>
        /// <param name="eventName">The event name to fire</param>
        /// <param name="runRules">Weather or not the Rules should be run</param>
        /// <returns></returns>
        public EventClient Fire(string eventName, bool runRules)
        {
            _eventStore.Fire(eventName);

            if (runRules)
            {
                RunRules();
            }

            return(this);
        }