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);
 }
Пример #2
0
        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();
        }
Пример #3
0
        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();
        }
Пример #4
0
        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;
 }
Пример #6
0
 public RemoveProfileHandler(TaxonomyServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
Пример #7
0
 public GetTagByIdHandler(TaxonomyServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
 public GetAccountsHandler(TaxonomyServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
Пример #9
0
 public GetProfilesHandler(TaxonomyServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
 public RemoveAccountHandler(TaxonomyServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
Пример #11
0
 public SendRegistrationConfirmationHandler(TaxonomyServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
 public RemoveCategoryHandler(TaxonomyServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
Пример #13
0
 public GetCategoriesHandler(TaxonomyServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
Пример #14
0
 public GetDigitalAssetByUniqueIdHandler(TaxonomyServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }