Ejemplo n.º 1
0
 public REstateMachineFactory(
     IConnectorFactoryResolver connectorFactoryResolver,
     IRepositoryContextFactory repositoryContextFactory,
     DotGraphCartographer cartographer)
 {
     _connectorFactoryResolver = connectorFactoryResolver;
     _repositoryContextFactory = repositoryContextFactory;
     _cartographer             = cartographer;
 }
Ejemplo n.º 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;
        }