/// <summary> /// Constructor /// </summary> /// <param name="projectConfigProvider">Project config provider</param> /// <param name="projectConfigDbAccess">Project config Db Access</param> /// <param name="projectDbAccess">Project Db Access</param> /// <param name="userManager">User Manager</param> public ProjectConfigApiController(IProjectConfigProvider projectConfigProvider, IProjectConfigDbAccess projectConfigDbAccess, IProjectDbAccess projectDbAccess, UserManager <GoNorthUser> userManager) { _projectConfigProvider = projectConfigProvider; _projectConfigDbAccess = projectConfigDbAccess; _projectDbAccess = projectDbAccess; _userManager = userManager; }
/// <summary> /// Export Cached Db Access /// </summary> /// <param name="exportSettingsDbAccess">Export Settings Db Access</param> /// <param name="objectExportSnippetDbAccess">Object export snippet Db Access</param> /// <param name="npcDbAccess">Npc Db Access</param> /// <param name="itemDbAccess">Item Db Access</param> /// <param name="skillDbAccess">Skill Db Access</param> /// <param name="questDbAccess">Quest Db Access</param> /// <param name="mapDbAccess">Map Db Access</param> /// <param name="pageDbAccess">Page Db Access</param> /// <param name="userProjectAccess">User project access</param> /// <param name="projectConfigProvider">Project config provider</param> /// <param name="includeExportTemplateDbAccess">Include export template Db access</param> public ExportCachedDbAccess(IExportSettingsDbAccess exportSettingsDbAccess, IObjectExportSnippetDbAccess objectExportSnippetDbAccess, IKortistoNpcDbAccess npcDbAccess, IStyrItemDbAccess itemDbAccess, IEvneSkillDbAccess skillDbAccess, IAikaQuestDbAccess questDbAccess, IKartaMapDbAccess mapDbAccess, IKirjaPageDbAccess pageDbAccess, IUserProjectAccess userProjectAccess, IProjectConfigProvider projectConfigProvider, IIncludeExportTemplateDbAccess includeExportTemplateDbAccess) { _exportSettingsDbAccess = exportSettingsDbAccess; _objectExportSnippetDbAccess = objectExportSnippetDbAccess; _npcDbAccess = npcDbAccess; _itemDbAccess = itemDbAccess; _skillDbAccess = skillDbAccess; _questDbAccess = questDbAccess; _mapDbAccess = mapDbAccess; _pageDbAccess = pageDbAccess; _userProjectAccess = userProjectAccess; _projectConfigProvider = projectConfigProvider; _includeExportTemplateDbAccess = includeExportTemplateDbAccess; _cachedExportSettings = new Dictionary <string, ExportSettings>(); _cachedPlayerNpcs = new Dictionary <string, KortistoNpc>(); _cachedNpcs = new Dictionary <string, KortistoNpc>(); _cachedItems = new Dictionary <string, StyrItem>(); _cachedSkills = new Dictionary <string, EvneSkill>(); _cachedQuest = new Dictionary <string, AikaQuest>(); _cachedPages = new Dictionary <string, KirjaPage>(); _cachedMarkers = new Dictionary <string, KartaMapNamedMarkerQueryResult>(); _cachedExportSnippets = new Dictionary <string, List <ObjectExportSnippet> >(); _cachedIncludeExportTemplates = new Dictionary <string, IncludeExportTemplate>(); }
/// <summary> /// Constructor /// </summary> /// <param name="folderDbAccess">Folder Db Access</param> /// <param name="templateDbAccess">Template Db Access</param> /// <param name="npcDbAccess">Npc Db Access</param> /// <param name="projectDbAccess">User Db Access</param> /// <param name="tagDbAccess">Tag Db Access</param> /// <param name="exportTemplateDbAccess">Export Template Db Access</param> /// <param name="languageKeyDbAccess">Language Key Db Access</param> /// <param name="exportFunctionIdDbAccess">Export Function Id Db Access</param> /// <param name="imageAccess">Npc Image Access</param> /// <param name="thumbnailService">Thumbnail Service</param> /// <param name="aikaQuestDbAccess">Aika Quest Db Access</param> /// <param name="taleDbAccess">Tale Db Access</param> /// <param name="kirjaPageDbAccess">Kirja Page Db Access</param> /// <param name="kartaMapDbAccess">Karta Map Db Access</param> /// <param name="projectConfigProvider">Project config provider</param> /// <param name="userManager">User Manager</param> /// <param name="implementationStatusComparer">Implementation Status Comparer</param> /// <param name="timelineService">Timeline Service</param> /// <param name="xssChecker">Xss Checker</param> /// <param name="logger">Logger</param> /// <param name="localizerFactory">Localizer Factory</param> public KortistoApiController(IKortistoFolderDbAccess folderDbAccess, IKortistoNpcTemplateDbAccess templateDbAccess, IKortistoNpcDbAccess npcDbAccess, IProjectDbAccess projectDbAccess, IKortistoNpcTagDbAccess tagDbAccess, IExportTemplateDbAccess exportTemplateDbAccess, ILanguageKeyDbAccess languageKeyDbAccess, IExportFunctionIdDbAccess exportFunctionIdDbAccess, IKortistoNpcImageAccess imageAccess, IKortistoThumbnailService thumbnailService, IAikaQuestDbAccess aikaQuestDbAccess, ITaleDbAccess taleDbAccess, IKirjaPageDbAccess kirjaPageDbAccess, IKartaMapDbAccess kartaMapDbAccess, IProjectConfigProvider projectConfigProvider, UserManager <GoNorthUser> userManager, IImplementationStatusComparer implementationStatusComparer, ITimelineService timelineService, IXssChecker xssChecker, ILogger <KortistoApiController> logger, IStringLocalizerFactory localizerFactory) : base(folderDbAccess, templateDbAccess, npcDbAccess, projectDbAccess, tagDbAccess, exportTemplateDbAccess, languageKeyDbAccess, exportFunctionIdDbAccess, imageAccess, thumbnailService, userManager, implementationStatusComparer, timelineService, xssChecker, logger, localizerFactory) { _aikaQuestDbAccess = aikaQuestDbAccess; _taleDbAccess = taleDbAccess; _kirjaPageDbAccess = kirjaPageDbAccess; _kartaMapDbAccess = kartaMapDbAccess; _projectConfigProvider = projectConfigProvider; }
/// <summary> /// Constructor /// </summary> /// <param name="folderDbAccess">Folder Db Access</param> /// <param name="templateDbAccess">Template Db Access</param> /// <param name="npcDbAccess">Npc Db Access</param> /// <param name="tagDbAccess">Tag Db Access</param> /// <param name="exportTemplateDbAccess">Export Template Db Access</param> /// <param name="importFieldValuesLogDbAccess">Import field values log Db Access</param> /// <param name="languageKeyDbAccess">Language Key Db Access</param> /// <param name="exportFunctionIdDbAccess">Export Function Id Db Access</param> /// <param name="objectExportSnippetDbAccess">Object export snippet Db Access</param> /// <param name="objectExportSnippetSnapshotDbAccess">Object export snippet snapshot Db Access</param> /// <param name="exportSnippetRelatedObjectNameResolver">Service that will resolve export snippet related object names</param> /// <param name="imageAccess">Npc Image Access</param> /// <param name="thumbnailService">Thumbnail Service</param> /// <param name="aikaQuestDbAccess">Aika Quest Db Access</param> /// <param name="skillDbAccess">Skill Db Access</param> /// <param name="taleDbAccess">Tale Db Access</param> /// <param name="kirjaPageDbAccess">Kirja Page Db Access</param> /// <param name="kartaMapDbAccess">Karta Map Db Access</param> /// <param name="stateMachineDbAccess">State machine Db Access</param> /// <param name="userProjectAccess">User project access</param> /// <param name="projectConfigProvider">Project config provider</param> /// <param name="csvGenerator">CSV Generator</param> /// <param name="csvReader">CSV Reader</param> /// <param name="userManager">User Manager</param> /// <param name="implementationStatusComparer">Implementation Status Comparer</param> /// <param name="timelineService">Timeline Service</param> /// <param name="xssChecker">Xss Checker</param> /// <param name="logger">Logger</param> /// <param name="localizerFactory">Localizer Factory</param> public KortistoApiController(IKortistoFolderDbAccess folderDbAccess, IKortistoNpcTemplateDbAccess templateDbAccess, IKortistoNpcDbAccess npcDbAccess, IKortistoNpcTagDbAccess tagDbAccess, IExportTemplateDbAccess exportTemplateDbAccess, IKortistoImportFieldValuesLogDbAccess importFieldValuesLogDbAccess, ILanguageKeyDbAccess languageKeyDbAccess, IExportFunctionIdDbAccess exportFunctionIdDbAccess, IObjectExportSnippetDbAccess objectExportSnippetDbAccess, IObjectExportSnippetSnapshotDbAccess objectExportSnippetSnapshotDbAccess, IExportSnippetRelatedObjectNameResolver exportSnippetRelatedObjectNameResolver, IKortistoNpcImageAccess imageAccess, IKortistoThumbnailService thumbnailService, IAikaQuestDbAccess aikaQuestDbAccess, IEvneSkillDbAccess skillDbAccess, ITaleDbAccess taleDbAccess, IKirjaPageDbAccess kirjaPageDbAccess, IKartaMapDbAccess kartaMapDbAccess, IStateMachineDbAccess stateMachineDbAccess, IUserProjectAccess userProjectAccess, IProjectConfigProvider projectConfigProvider, ICsvGenerator csvGenerator, ICsvParser csvReader, UserManager <GoNorthUser> userManager, IImplementationStatusComparer implementationStatusComparer, ITimelineService timelineService, IXssChecker xssChecker, ILogger <KortistoApiController> logger, IStringLocalizerFactory localizerFactory) : base(folderDbAccess, templateDbAccess, npcDbAccess, tagDbAccess, exportTemplateDbAccess, importFieldValuesLogDbAccess, languageKeyDbAccess, exportFunctionIdDbAccess, objectExportSnippetDbAccess, objectExportSnippetSnapshotDbAccess, exportSnippetRelatedObjectNameResolver, stateMachineDbAccess, userProjectAccess, imageAccess, thumbnailService, csvGenerator, csvReader, userManager, implementationStatusComparer, timelineService, xssChecker, logger, localizerFactory) { _aikaQuestDbAccess = aikaQuestDbAccess; _skillDbAccess = skillDbAccess; _taleDbAccess = taleDbAccess; _kirjaPageDbAccess = kirjaPageDbAccess; _kartaMapDbAccess = kartaMapDbAccess; _projectConfigProvider = projectConfigProvider; }
/// <summary> /// Export Cached Db Access /// </summary> /// <param name="projectDbAccess">Project Db Access</param> /// <param name="exportSettingsDbAccess">Export Settings Db Access</param> /// <param name="npcDbAccess">Npc Db Access</param> /// <param name="itemDbAccess">Item Db Access</param> /// <param name="skillDbAccess">Skill Db Access</param> /// <param name="questDbAccess">Quest Db Access</param> /// <param name="mapDbAccess">Map Db Access</param> /// <param name="projectConfigProvider">Project config provider</param> public ExportCachedDbAccess(IProjectDbAccess projectDbAccess, IExportSettingsDbAccess exportSettingsDbAccess, IKortistoNpcDbAccess npcDbAccess, IStyrItemDbAccess itemDbAccess, IEvneSkillDbAccess skillDbAccess, IAikaQuestDbAccess questDbAccess, IKartaMapDbAccess mapDbAccess, IProjectConfigProvider projectConfigProvider) { _projectDbAccess = projectDbAccess; _exportSettingsDbAccess = exportSettingsDbAccess; _npcDbAccess = npcDbAccess; _itemDbAccess = itemDbAccess; _skillDbAccess = skillDbAccess; _questDbAccess = questDbAccess; _mapDbAccess = mapDbAccess; _projectConfigProvider = projectConfigProvider; _cachedExportSettings = new Dictionary <string, ExportSettings>(); _cachedPlayerNpcs = new Dictionary <string, KortistoNpc>(); _cachedNpcs = new Dictionary <string, KortistoNpc>(); _cachedItems = new Dictionary <string, StyrItem>(); _cachedSkills = new Dictionary <string, EvneSkill>(); _cachedQuest = new Dictionary <string, AikaQuest>(); _cachedMarkers = new Dictionary <string, KartaMapNamedMarkerQueryResult>(); }