public SubscriptionService( IGridDomainNode node, ISingleQuery <Guid, SubscriptionViewModel> businessCurrentSubscriptionQuery, IQuery <OfferViewModel> availableSubscriptionsQuery) { _node = node; _businessCurrentSubscriptionQuery = businessCurrentSubscriptionQuery; _availableSubscriptionsQuery = availableSubscriptionsQuery; }
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(); }
public Task Execute(IGridDomainNode node) { return(_action(node, Command)); }
public static Task ExecutePlan(this IGridDomainNode node, CommandPlan plan) { return(plan.Execute(node)); }
public PaymentsGate(IGridDomainNode node) { _node = node; }