示例#1
0
 public SubscriptionService(
     IGridDomainNode node,
     ISingleQuery <Guid, SubscriptionViewModel> businessCurrentSubscriptionQuery,
     IQuery <OfferViewModel> availableSubscriptionsQuery)
 {
     _node = node;
     _businessCurrentSubscriptionQuery = businessCurrentSubscriptionQuery;
     _availableSubscriptionsQuery      = availableSubscriptionsQuery;
 }
示例#2
0
        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();
 }