Ejemplo n.º 1
0
 public PaymentStateMachine(
     ClassicTumblerParameters parameters,
     TumblerClient client,
     IDestinationWallet destinationWallet,
     ExternalServices services,
     State state) : this(parameters, client, destinationWallet, services)
 {
     if (state == null)
     {
         return;
     }
     if (state.NegotiationClientState != null)
     {
         StartCycle = state.NegotiationClientState.CycleStart;
         ClientChannelNegotiation = new ClientChannelNegotiation(parameters, state.NegotiationClientState);
     }
     if (state.PromiseClientState != null)
     {
         PromiseClientSession = new PromiseClientSession(parameters.CreatePromiseParamaters(), state.PromiseClientState);
     }
     if (state.SolverClientState != null)
     {
         SolverClientSession = new SolverClientSession(parameters.CreateSolverParamaters(), state.SolverClientState);
     }
 }
Ejemplo n.º 2
0
 public PaymentStateMachine(
     ClassicTumblerParameters parameters,
     TumblerClient client,
     IDestinationWallet destinationWallet,
     ExternalServices services)
 {
     Parameters        = parameters;
     AliceClient       = client;
     BobClient         = client;
     Services          = services;
     DestinationWallet = destinationWallet;
 }
Ejemplo n.º 3
0
 public StateMachinesExecutor(
     ClassicTumblerParameters parameters,
     TumblerClient client,
     IDestinationWallet destinationWallet,
     ExternalServices services,
     IRepository repository,
     ILogger logger)
 {
     Parameters        = parameters;
     AliceClient       = client;
     BobClient         = client;
     Services          = services;
     DestinationWallet = destinationWallet;
     Logger            = logger;
     Repository        = repository;
 }