Fire() public method

public Fire ( string eventName ) : void
eventName string
return void
Esempio 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 AppEventsClient Fire(string eventName, bool runRules = true, bool saveStore = true)
        {
            EventStore.Fire(eventName);

            if (runRules)
            {
                Run();
            }

            if (saveStore)
            {
                SaveStore();
            }

            return(this);
        }