Beispiel #1
0
        public GrpcStateEngine(
            IStateMachineService stateMachineService,
            IEnumerable <IEventListener> listeners)
        {
            _stateMachineService = stateMachineService
                                   .WithHeaders(new Metadata
            {
                { "Status-Type", TypeState.FromType(typeof(TState)).GetFullName() },
                { "Input-Type", TypeState.FromType(typeof(TInput)).GetFullName() }
            });

            _listeners = listeners.ToList();
        }
        public GrpcStateEngine(
            IStateMachineService stateMachineService,
            IEnumerable <IEventListener> listeners)
        {
            _stateMachineService = stateMachineService
                                   .WithHeaders(new Metadata
            {
                { "Status-Type", typeof(TState).AssemblyQualifiedName },
                { "Input-Type", typeof(TInput).AssemblyQualifiedName }
            });

            _listeners = listeners.ToList();
        }