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

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

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