public CardDataController(
            IBasicCommands <Card> cardCommands,
            IBasicQueries <Card> cardQueries)
        {
            this.cardCommands = cardCommands;
            this.cardQueries  = cardQueries;

            //temp code to populate DB
            //cardCommands.UpdateAsync("BlueShift", "1", new Card {
            //    Name = "Club Asteroid",
            //    Id = 1,
            //    Title = "Slammin Spaceclub",
            //    Type = "Asset",
            //    Subtypes = new[] { "Station", "Opulent" },
            //    ResourceCost = 2,
            //    Icons = new[] { "Exploit", "Maneuver" },
            //    Burn = 1,
            //    Control = 1,
            //    Hull = 4,
            //    MaxCopies = 1,
            //    Text = new[] { "Cycle -> Gain $1 for each Aristocrat on this.", "Aristocrats may be deployed here." }
            //});
            //cardCommands.UpdateAsync("BlueShift", "2", new Card {
            //    Name = "Radiation Blast",
            //    Id = 2,
            //    Type = "Event",
            //    Subtypes = new[] { "Tactic" },
            //    ResourceCost = 4,
            //    ActionCost = "Activate",
            //    ShipSelections = new[] { "Mandatory" },
            //    Burn = 2,
            //    Text = new[] { "Spend up to %3, then deal that much DMG to all targets here." }
            //});
            //cardCommands.CreateAsync("BlueShift", "3", new Card { Name = "From Db 3", Id = 3, Title = "Sweet Dude" });
        }
Exemple #2
0
 public ApplicationStore(IBasicQueries <App> appQueries, IBasicCommands <App> appCommands, IBasicQueries <ApiKey> apiKeyQueries, IBasicCommands <ApiKey> apiKeyCommands)
 {
     _appQueries     = appQueries;
     _appCommands    = appCommands;
     _apiKeyQueries  = apiKeyQueries;
     _apiKeyCommands = apiKeyCommands;
 }
Exemple #3
0
        public UserCommands(
            IProjectResolver projectResolver,
            IBasicCommands <SiteUser> userCommands,
            IBasicCommands <SiteRole> roleCommands,
            IBasicCommands <UserRole> userRoleCommands,
            IBasicCommands <UserClaim> claimCommands,
            IBasicCommands <UserLogin> loginCommands,
            IBasicCommands <UserLocation> locationCommands,
            IBasicQueries <SiteUser> userQueries,
            IBasicQueries <SiteRole> roleQueries,
            IBasicQueries <UserRole> userRoleQueries,
            IBasicQueries <UserClaim> claimQueries,
            IBasicQueries <UserLocation> locationQueries,
            IStoragePathResolver <UserLogin> loginPathResolver
            )
        {
            this.projectResolver   = projectResolver;
            this.userCommands      = userCommands;
            this.roleCommands      = roleCommands;
            this.userRoleCommands  = userRoleCommands;
            this.claimCommands     = claimCommands;
            this.loginCommands     = loginCommands;
            this.locationCommands  = locationCommands;
            this.loginPathResolver = loginPathResolver;

            this.userQueries     = userQueries;
            this.roleQueries     = roleQueries;
            this.userRoleQueries = userRoleQueries;
            this.claimQueries    = claimQueries;
            this.locationQueries = locationQueries;
        }
        public UserCommands(
            //IProjectResolver projectResolver,
            IBasicCommands<SiteUser> userCommands,
            IBasicCommands<SiteRole> roleCommands,
            IBasicCommands<UserRole> userRoleCommands,
            IBasicCommands<UserClaim> claimCommands,
            IBasicCommands<UserLogin> loginCommands,
            IBasicCommands<UserLocation> locationCommands,
            IBasicQueries<SiteUser> userQueries,
            IBasicQueries<SiteRole> roleQueries,
            IBasicQueries<UserRole> userRoleQueries,
            IBasicQueries<UserClaim> claimQueries,
            IBasicQueries<UserLocation> locationQueries,
            IStoragePathResolver<UserLogin> loginPathResolver
            )
        {
            //this.projectResolver = projectResolver;
            this.userCommands = userCommands;
            this.roleCommands = roleCommands;
            this.userRoleCommands = userRoleCommands;
            this.claimCommands = claimCommands;
            this.loginCommands = loginCommands;
            this.locationCommands = locationCommands;
            this.loginPathResolver = loginPathResolver;

            this.userQueries = userQueries;
            this.roleQueries = roleQueries;
            this.userRoleQueries = userRoleQueries;
            this.claimQueries = claimQueries;
            this.locationQueries = locationQueries;

        }
Exemple #5
0
 public ContentHistoryCommands(
     IBasicCommands <ContentHistory> commands,
     IBasicQueries <ContentHistory> queries
     )
 {
     _commands = commands;
     _queries  = queries;
 }
Exemple #6
0
 public ProductRepository(
     IBasicCommands <ProductDomain> productDBWrite,
     IBasicQueries <ProductDomain> productDBRead
     )
 {
     _productDBWrite = productDBWrite;
     _productDBRead  = productDBRead;
 }
 public KvpItemCommands(
     IBasicQueries <KvpItem> kvpQueries,
     IBasicCommands <KvpItem> kvpCommands
     )
 {
     _kvpQueries  = kvpQueries;
     _kvpCommands = kvpCommands;
 }
Exemple #8
0
 public PushSubscriptionStore(
     IBasicCommands <PushDeviceSubscription> commands,
     IBasicQueries <PushDeviceSubscription> queries
     )
 {
     _commands = commands;
     _queries  = queries;
 }
Exemple #9
0
 public HomeController(
     IBasicCommands <Models.TripItem> tiCom, IBasicQueries <Models.TripItem> tiQ,
     IBasicCommands <Models.Trip> tCom, IBasicQueries <Models.Trip> tQ)
 {
     _tiCom = tiCom;
     _tiQ   = tiQ;
     _tQ    = tQ;
     _tCom  = tCom;
 }
 public NoDbJournalRepository(
     IBasicCommands <JournalEntry> journalCommands,
     IBasicQueries <JournalEntry> journalQueries,
     ILogger <NoDbJournalRepository> logger)
 {
     commands = journalCommands;
     query    = journalQueries;
     log      = logger;
 }
Exemple #11
0
 public PostQueries(
     IBasicCommands <Post> postCommands,
     IBasicQueries <Post> postQueries,
     ILogger <PostQueries> logger)
 {
     commands = postCommands;
     query    = postQueries;
     log      = logger;
 }
 public HomeController(
     IBasicCommands <Event> eventCommands,
     IBasicQueries <Event> eventQueries,
     ILogger <HomeController> logger
     ) : base(logger)
 {
     _eventCommands = eventCommands;
     _eventQueries  = eventQueries;
 }
 public ClientCommands(
     IBasicCommands<Client> commands,
     IBasicCommands<ClientClaim> claimCommands,
     IBasicQueries<ClientClaim> claimQueries
     )
 {
     _commands = commands;
     _claimCommands = claimCommands;
     _claimQueries = claimQueries;
 }
Exemple #14
0
 public ProjectCommands(
     IBasicCommands <ProjectSettings> pageCommands,
     IBasicQueries <ProjectSettings> pageQueries,
     ILogger <ProjectCommands> logger
     )
 {
     commands = pageCommands;
     query    = pageQueries;
     log      = logger;
 }
 public PageCommands(
     IBasicCommands <Page> pageCommands,
     IBasicQueries <Page> pageQueries,
     IKeyGenerator keyGenerator
     )
 {
     _commands     = pageCommands;
     _query        = pageQueries;
     _keyGenerator = keyGenerator;
 }
Exemple #16
0
 public AuthorizationPolicyCommands(
     IBasicCommands <AuthorizationPolicyInfo> policyCommands,
     IBasicQueries <AuthorizationPolicyInfo> policyQueries,
     PolicyCache cache
     )
 {
     _policyCommands = policyCommands;
     _policyQueries  = policyQueries;
     _cache          = cache;
 }
Exemple #17
0
 public PageQueries(
     IBasicCommands <Page> pageCommands,
     IBasicQueries <Page> pageQueries,
     ILogger <PageQueries> logger
     )
 {
     commands = pageCommands;
     query    = pageQueries;
     log      = logger;
 }
Exemple #18
0
 public ClientCommands(
     IBasicCommands <Client> commands,
     IBasicCommands <ClientClaim> claimCommands,
     IBasicQueries <ClientClaim> claimQueries
     )
 {
     _commands      = commands;
     _claimCommands = claimCommands;
     _claimQueries  = claimQueries;
 }
Exemple #19
0
 public PostQueries(
     PostCache cache,
     IBasicCommands <Post> postCommands,
     IBasicQueries <Post> postQueries,
     ILogger <PostQueries> logger)
 {
     this.cache = cache;
     commands   = postCommands;
     query      = postQueries;
     log        = logger;
 }
Exemple #20
0
 public ContentStore(
     IBasicQueries <ContentCollection> contentColllectionQueries,
     IBasicCommands <ContentCollection> contentCollectionCommands,
     IBasicQueries <ContentItem> contentItemQueries,
     IBasicCommands <ContentItem> contentItemCommands)
 {
     _contentColllectionQueries = contentColllectionQueries;
     _contentCollectionCommands = contentCollectionCommands;
     _contentItemQueries        = contentItemQueries;
     _contentItemCommands       = contentItemCommands;
 }
Exemple #21
0
 public PersistedGrantStore(
     SiteContext site,
     IBasicQueries <PersistedGrant> queries,
     IBasicCommands <PersistedGrant> commands,
     ILogger <PersistedGrantStore> logger
     )
 {
     _siteId   = site.Id.ToString();
     _logger   = logger;
     _queries  = queries;
     _commands = commands;
 }
 public PersistedGrantStore(
     IHttpContextAccessor contextAccessor,
     IBasicQueries<GrantItem> queries,
     IBasicCommands<GrantItem> commands,
     ILogger<PersistedGrantStore> logger
     )
 {
     _contextAccessor = contextAccessor;
     _logger = logger;
     _queries = queries;
     _commands = commands;
 }
Exemple #23
0
 public PersistedGrantStore(
     IHttpContextAccessor contextAccessor,
     IBasicQueries <GrantItem> queries,
     IBasicCommands <GrantItem> commands,
     ILogger <PersistedGrantStore> logger
     )
 {
     _contextAccessor = contextAccessor;
     _logger          = logger;
     _queries         = queries;
     _commands        = commands;
 }
 public PostCommands(
     PostCache cache,
     IBasicCommands <Post> postCommands,
     IBasicQueries <Post> postQueries,
     IKeyGenerator keyGenerator
     )
 {
     _cache        = cache;
     _commands     = postCommands;
     _query        = postQueries;
     _keyGenerator = keyGenerator;
 }
 public PageCommands(
     IBasicCommands <Page> pageCommands,
     IBasicQueries <Page> pageQueries,
     IKeyGenerator keyGenerator
     //,ILogger<PageCommands> logger
     )
 {
     _commands     = pageCommands;
     _query        = pageQueries;
     _keyGenerator = keyGenerator;
     //_log = logger;
 }
 public PostCommands(
     PostCache cache,
     IBasicCommands <Post> postCommands,
     IBasicQueries <Post> postQueries,
     IKeyGenerator keyGenerator
     //,ILogger<PostCommands> logger
     )
 {
     this.cache    = cache;
     commands      = postCommands;
     query         = postQueries;
     _keyGenerator = keyGenerator;
     // log = logger;
 }
 public SiteCommands(
     IProjectResolver projectResolver,
     IBasicQueries <SiteSettings> queries,
     IBasicCommands <SiteSettings> commands,
     IBasicQueries <SiteHost> hostQueries,
     IBasicCommands <SiteHost> hostCommands
     )
 {
     this.projectResolver = projectResolver;
     this.queries         = queries;
     this.commands        = commands;
     this.hostQueries     = hostQueries;
     this.hostCommands    = hostCommands;
 }
 public SiteCommands(
     //IProjectResolver projectResolver,
     IBasicQueries<SiteSettings> queries,
     IBasicCommands<SiteSettings> commands,
     IBasicQueries<SiteHost> hostQueries,
     IBasicCommands<SiteHost> hostCommands
     )
 {
     //this.projectResolver = new DefaultProjectResolver();
     this.queries = queries;
     this.commands = commands;
     this.hostQueries = hostQueries;
     this.hostCommands = hostCommands;
 }
Exemple #29
0
 public DeviceFlowStore(
     IHttpContextAccessor contextAccessor,
     IBasicQueries <DeviceFlowCodes> queries,
     IBasicCommands <DeviceFlowCodes> commands,
     IPersistentGrantSerializer serializer,
     ILogger <DeviceFlowStore> logger
     )
 {
     _contextAccessor = contextAccessor;
     _logger          = logger;
     _queries         = queries;
     _commands        = commands;
     _serializer      = serializer;
 }
Exemple #30
0
 public LogRepository(
     IBasicCommands <LogItem> commands,
     IBasicQueries <LogItem> queries,
     IStoragePathResolver <LogItem> pathResolver,
     IStringSerializer <LogItem> serializer,
     IOptions <NoDbLogOptions> optionsAccessor
     )
 {
     this.commands     = commands;
     query             = queries;
     this.serializer   = serializer;
     this.pathResolver = pathResolver;
     options           = optionsAccessor.Value;
 }
Exemple #31
0
 public SiteCommands(
     //IProjectResolver projectResolver,
     IBasicQueries <SiteSettings> queries,
     IBasicCommands <SiteSettings> commands,
     IBasicQueries <SiteHost> hostQueries,
     IBasicCommands <SiteHost> hostCommands
     )
 {
     //this.projectResolver = new DefaultProjectResolver();
     this.queries      = queries;
     this.commands     = commands;
     this.hostQueries  = hostQueries;
     this.hostCommands = hostCommands;
 }
Exemple #32
0
        public GeoCommands(
            IProjectResolver projectResolver,
            IBasicQueries <GeoCountry> countryQueries,
            IBasicCommands <GeoCountry> countryCommands,
            IBasicQueries <GeoZone> stateQueries,
            IBasicCommands <GeoZone> stateCommands

            )
        {
            this.projectResolver = projectResolver;
            this.countryQueries  = countryQueries;
            this.countryCommands = countryCommands;
            this.stateQueries    = stateQueries;
            this.stateCommands   = stateCommands;
        }
Exemple #33
0
        public GeoCommands(
            //IProjectResolver projectResolver,
            IBasicQueries <GeoCountry> countryQueries,
            IBasicCommands <GeoCountry> countryCommands,
            IBasicQueries <GeoZone> stateQueries,
            IBasicCommands <GeoZone> stateCommands

            )
        {
            //this.projectResolver = new DefaultProjectResolver();
            this.countryQueries  = countryQueries;
            this.countryCommands = countryCommands;
            this.stateQueries    = stateQueries;
            this.stateCommands   = stateCommands;
        }
Exemple #34
0
 public GeoCommands(
     //IProjectResolver projectResolver,
     IBasicQueries<GeoCountry> countryQueries,
     IBasicCommands<GeoCountry> countryCommands,
     IBasicQueries<GeoZone> stateQueries,
     IBasicCommands<GeoZone> stateCommands
    
     )
 {
     //this.projectResolver = new DefaultProjectResolver();
     this.countryQueries = countryQueries;
     this.countryCommands = countryCommands;
     this.stateQueries = stateQueries;
     this.stateCommands = stateCommands;
    
 }
Exemple #35
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="optionsAccessor"></param>
 /// <param name="fileProvider"></param>
 /// <param name="memoryCache"></param>
 /// <param name="hosting"></param>
 /// <param name="logger"></param>
 /// <param name="pageQueriesCategory"></param>
 /// <param name="pageCommandsCategory"></param>
 /// <param name="pageQueriesQuestion"></param>
 /// <param name="pageCommandsQuestion"></param>
 public CueController(
     IOptions <AppOptions> optionsAccessor,
     IFileProvider fileProvider,
     IMemoryCache memoryCache,
     IHostingEnvironment hosting,
     ILogger <CueController> logger,
     IBasicQueries <Category> pageQueriesCategory,
     IBasicCommands <Category> pageCommandsCategory,
     IBasicQueries <Question> pageQueriesQuestion,
     IBasicCommands <Question> pageCommandsQuestion
     )
 {
     _pageQueriesQuestion  = pageQueriesQuestion;
     _pageCommandsQuestion = pageCommandsQuestion;
     _pageQueriesCategory  = pageQueriesCategory;
     _pageCommandsCategory = pageCommandsCategory;
 }
 public ScopeCommands(
     IBasicCommands<Scope> commands
     )
 {
     _commands = commands;
 }