public SubscriptionService( IGridDomainNode node, ISingleQuery <Guid, SubscriptionViewModel> businessCurrentSubscriptionQuery, IQuery <OfferViewModel> availableSubscriptionsQuery) { _node = node; _businessCurrentSubscriptionQuery = businessCurrentSubscriptionQuery; _availableSubscriptionsQuery = availableSubscriptionsQuery; }
public IEntityRef <T> UseQuery(ISingleQuery <T> query) { if (this.query != null) { throw new Exception($"Query already set."); } this.query = query; return(this); }
public IEntityRef <T> GetRef(ISingleQuery <T> query) { return(serviceProvider.GetService <IEntityRef <T> >().UseQuery(query)); }
public IEntityRef <T> UseQuery(ISingleQuery <T> query) { throw new NotImplementedException(); }