Esempio n. 1
0
 public SubscriptionService(
     IGridDomainNode node,
     ISingleQuery <Guid, SubscriptionViewModel> businessCurrentSubscriptionQuery,
     IQuery <OfferViewModel> availableSubscriptionsQuery)
 {
     _node = node;
     _businessCurrentSubscriptionQuery = businessCurrentSubscriptionQuery;
     _availableSubscriptionsQuery      = availableSubscriptionsQuery;
 }
Esempio n. 2
0
 public Task Execute(IGridDomainNode node, Action <CommandPlan> singlePlanExecutedCallback)
 {
     return(Task.WhenAll(CommandPlans.Select(p => node.ExecutePlan(p)
                                             .ContinueWith(t => singlePlanExecutedCallback(p)))));
 }
 internal virtual void OnSetup()
 {
     Node = CreateNode();
 }
Esempio n. 4
0
 public Task Execute(IGridDomainNode node)
 {
     return(_action(node, Command));
 }
 public static Task ExecutePlan(this IGridDomainNode node, CommandPlan plan)
 {
     return(plan.Execute(node));
 }
Esempio n. 6
0
 public PaymentsGate(IGridDomainNode node)
 {
     _node = node;
 }