Exemplo n.º 1
0
        /// <summary>
        ///   Executes the behavior for this proxy instance.
        /// </summary>
        /// <param name = "context">The context.</param>
        public void Transition(IStateTransitionContext context)
        {
            var args = new StateTransitionLogicEventArgs {
                Context = context
            };

            OnExecuteTransition(this, args);
        }
        public static TData DeserializeData <TData>(this IStateTransitionContext context, string key)
        {
            string data = context.SerializedData[key];

            return(JsonSerializer.Deserialize <TData>(data));
        }