コード例 #1
0
        public InstallationDataSeeder(SeedDataConfiguration configuration, ILogger logger, IHttpContextAccessor httpContextAccessor)
        {
            Guard.NotNull(configuration, nameof(configuration));
            Guard.NotNull(configuration.Language, "SeedDataConfiguration.Language");
            Guard.NotNull(configuration.Data, "SeedDataConfiguration.SeedData");
            Guard.NotNull(httpContextAccessor, nameof(httpContextAccessor));

            _config = configuration;
            _logger = logger;
            _httpContextAccessor = httpContextAccessor;
            _data = configuration.Data;
        }