示例#1
0
 public DbSeeder(
     IWorldService worldService,
     IFactionService factionService,
     IItemService itemService,
     IItemCategoryService itemCategoryService,
     IZoneService zoneService,
     IProfileService profileService,
     ILoadoutService loadoutService,
     IScrimRulesetManager rulesetManager,
     IFacilityService facilityService,
     IFacilityTypeService facilityTypeService,
     IVehicleService vehicleService,
     IVehicleTypeService vehicleTypeService,
     IDeathEventTypeService deathTypeService,
     ISqlScriptRunner sqlScriptRunner,
     ILogger <DbSeeder> logger
     )
 {
     _worldService        = worldService;
     _factionService      = factionService;
     _itemService         = itemService;
     _itemCategoryService = itemCategoryService;
     _zoneService         = zoneService;
     _profileService      = profileService;
     _loadoutService      = loadoutService;
     _rulesetManager      = rulesetManager;
     _facilityService     = facilityService;
     _facilityTypeService = facilityTypeService;
     _vehicleService      = vehicleService;
     _vehicleTypeService  = vehicleTypeService;
     _deathTypeService    = deathTypeService;
     _sqlScriptRunner     = sqlScriptRunner;
     _logger = logger;
 }
示例#2
0
        public DatabaseMaintenanceService(
            IFacilityTypeService facilityTypeService,
            IFacilityService facilityService,
            IItemService itemService,
            IItemCategoryService itemCategoryService,
            IProfileService profileService,
            ILoadoutService loadoutService,
            IZoneService zoneService,
            IWorldService worldService,
            IFactionService factionService,
            IVehicleService vehicleService,
            ISqlScriptRunner adhocScriptRunner,
            IWebHostEnvironment env
            )
        {
            _facilityService     = facilityService;
            _facilityTypeService = facilityTypeService;
            _itemService         = itemService;
            _itemCategoryService = itemCategoryService;
            _profileService      = profileService;
            _loadoutService      = loadoutService;
            _zoneService         = zoneService;
            _worldService        = worldService;
            _factionService      = factionService;
            _vehicleService      = vehicleService;
            _adhocScriptRunner   = adhocScriptRunner;
            _env = env;

            _mapRegions     = new CensusStoreDataComparisonRow("Map Regions", _facilityService);
            _facilityTypes  = new CensusStoreDataComparisonRow("Facility Types", _facilityTypeService);
            _items          = new CensusStoreDataComparisonRow("Items", _itemService);
            _itemCategories = new CensusStoreDataComparisonRow("Item Categories", _itemCategoryService);
            _profiles       = new CensusStoreDataComparisonRow("Profiles", _profileService);
            _loadouts       = new CensusStoreDataComparisonRow("Loadouts", _loadoutService);
            _zones          = new CensusStoreDataComparisonRow("Zones", _zoneService);
            _worlds         = new CensusStoreDataComparisonRow("Worlds", _worldService);
            _factions       = new CensusStoreDataComparisonRow("Factions", _factionService);
            _vehicles       = new CensusStoreDataComparisonRow("Vehicles", _vehicleService);

            Comparisons.Add(_mapRegions);
            Comparisons.Add(_facilityTypes);
            Comparisons.Add(_items);
            Comparisons.Add(_itemCategories);
            Comparisons.Add(_profiles);
            Comparisons.Add(_loadouts);
            Comparisons.Add(_zones);
            Comparisons.Add(_worlds);
            Comparisons.Add(_factions);
            Comparisons.Add(_vehicles);
        }
示例#3
0
 public LoadoutController()
 {
     _service = new LoadoutService();
 }
示例#4
0
 public LoadoutController(ILoadoutService loadoutService)
 {
     _service = loadoutService;
     _externalUserId = TokenIdentityHelper.GetOwnerIdFromToken();
 }