public StateMachineInstanceContext(TInstance instance, CancellationToken cancellationToken = default(CancellationToken))
        {
            Instance           = instance;
            _cancellationToken = cancellationToken;

            _payloadCache = new PayloadCache();
        }
Пример #2
0
        public StateMachineEventContext(StateMachine <TInstance> machine, TInstance instance, Event @event, CancellationToken cancellationToken)
        {
            _machine           = machine;
            _instance          = instance;
            _event             = @event;
            _cancellationToken = cancellationToken;

            _payloadCache = new PayloadCache();
        }