Example #1
0
 public REstateMachineFactory(
     IConnectorFactoryResolver connectorFactoryResolver,
     IRepositoryContextFactory repositoryContextFactory,
     DotGraphCartographer cartographer)
 {
     _connectorFactoryResolver = connectorFactoryResolver;
     _repositoryContextFactory = repositoryContextFactory;
     _cartographer             = cartographer;
 }
Example #2
0
        public REstateMachine(
            IConnectorFactoryResolver connectorFactoryResolver,
            IRepositoryContextFactory repositoryContextFactory,
            DotGraphCartographer cartographer,
            string apiKey,
            string machineId,
            IDictionary <State, StateConfiguration> stateMappings)
        {
            _connectorFactoryResolver = connectorFactoryResolver;
            _repositoryContextFactory = repositoryContextFactory;
            _cartographer             = cartographer;

            ApiKey    = apiKey;
            MachineId = machineId;

            StateMappings = stateMappings;
        }