public AzureBlobStorageDigitalAssetHandler(TaxonomyServiceContext context, ICache cache, Lazy <IAzureBlobStorageConfiguration> lazyConfiguration) { _context = context; _cache = cache; _configuration = lazyConfiguration.Value; _storageAccount = new CloudStorageAccount(new StorageCredentials(_configuration.AccountName, _configuration.KeyValue), true); }
public static void Seed(TaxonomyServiceContext context) { context.Tenants.AddOrUpdate(x => x.Name, new Tenant() { Name = "Default", UniqueId = new Guid("50848e1d-f3ec-486a-b25c-7f6cf1ef7c93") }); context.SaveChanges(); }
public static void Seed(TaxonomyServiceContext context) { var systemRole = context.Roles.First(x => x.Name == Roles.SYSTEM); var roles = new List <Role>(); var tenant = context.Tenants.Single(x => x.Name == "Default"); roles.Add(systemRole); context.Users.AddOrUpdate(x => x.Username, new User() { Username = "******", Password = new EncryptionService().TransformPassword("system"), Roles = roles, TenantId = tenant.Id }); context.SaveChanges(); }
public static void Seed(TaxonomyServiceContext context) { context.Roles.AddOrUpdate(x => x.Name, new Role() { Name = Roles.SYSTEM }); context.Roles.AddOrUpdate(x => x.Name, new Role() { Name = Roles.ACCOUNT_HOLDER }); context.Roles.AddOrUpdate(x => x.Name, new Role() { Name = Roles.DEVELOPMENT }); context.SaveChanges(); }
public AddOrUpdateUserHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }
public RemoveProfileHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }
public GetTagByIdHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }
public GetAccountsHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }
public GetProfilesHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }
public RemoveAccountHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }
public SendRegistrationConfirmationHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }
public RemoveCategoryHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }
public GetCategoriesHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }
public GetDigitalAssetByUniqueIdHandler(TaxonomyServiceContext context, ICache cache) { _context = context; _cache = cache; }