public static StateConfiguration <TState, TTrigger> OnExit <TState, TTrigger>(
            this StateConfiguration <TState, TTrigger> config, Action action)
        {
            Contract.NotNull(action != null, nameof(action));

            return(config.OnExit(t => action()));
        }
Exemple #2
0
        public static StateConfiguration <TState, TTrigger> OnExit <TState, TTrigger>(
            this StateConfiguration <TState, TTrigger> config, Action action)
        {
            Contract.Requires <ArgumentNullException>(action != null, nameof(action));

            return(config.OnExit(t => action()));
        }