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())); }
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())); }