コード例 #1
0
 public AzureBlobStorageDigitalAssetHandler(CarouselServiceContext context, ICache cache, Lazy <IAzureBlobStorageConfiguration> lazyConfiguration)
 {
     _context        = context;
     _cache          = cache;
     _configuration  = lazyConfiguration.Value;
     _storageAccount = new CloudStorageAccount(new StorageCredentials(_configuration.AccountName, _configuration.Key), true);
 }
 public SendRegistrationConfirmationHandler(CarouselServiceContext context, ICache cache, INotificationService notificationService, IEncryptionService encryptionService)
 {
     _context             = context;
     _cache               = cache;
     _notificationService = notificationService;
     _encryptionService   = encryptionService;
 }
コード例 #3
0
 public RegisterHandler(CarouselServiceContext context, ICache cache, Lazy <IAuthConfiguration> lazyAuthConfiguration, IMediator mediator)
 {
     _context         = context;
     _cache           = cache;
     _mediator        = mediator;
     _jwtWriterFormat = new JwtWriterFormat(lazyAuthConfiguration, new OAuthOptions(lazyAuthConfiguration, mediator));
 }
コード例 #4
0
        public static void Seed(CarouselServiceContext context)
        {
            context.Tenants.AddOrUpdate(x => x.Name, new Tenant()
            {
                Name     = "Default",
                UniqueId = new Guid("50848e1d-f3ec-486a-b25c-7f6cf1ef7c93")
            });

            context.Tenants.AddOrUpdate(x => x.Name, new Tenant()
            {
                Name     = "Olivia Mitchell-Brown",
                UniqueId = new Guid("1c3dae2e-bad0-4958-8e7d-160eb0c470c8")
            });

            context.SaveChanges();
        }
コード例 #5
0
        public static void Seed(CarouselServiceContext 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();
        }
コード例 #6
0
        public static void Seed(CarouselServiceContext 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();
        }
コード例 #7
0
 public GetProfilesHandler(CarouselServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
コード例 #8
0
 public RemoveUserHandler(CarouselServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
コード例 #9
0
 public AddOrUpdateUserHandler(CarouselServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
コード例 #10
0
 public GetDigitalAssetByUniqueIdHandler(CarouselServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
コード例 #11
0
 public GetCarouselItemsHandler(CarouselServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
コード例 #12
0
 public GetUserByIdHandler(CarouselServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
コード例 #13
0
 public GetAccountsHandler(CarouselServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
コード例 #14
0
 public SyncHandler(CarouselServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
コード例 #15
0
 public ConfirmRegistrationHandler(CarouselServiceContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }