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; }
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)); }
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(); }
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(); }
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(); }
public GetProfilesHandler(CarouselServiceContext context, ICache cache) { _context = context; _cache = cache; }
public RemoveUserHandler(CarouselServiceContext context, ICache cache) { _context = context; _cache = cache; }
public AddOrUpdateUserHandler(CarouselServiceContext context, ICache cache) { _context = context; _cache = cache; }
public GetDigitalAssetByUniqueIdHandler(CarouselServiceContext context, ICache cache) { _context = context; _cache = cache; }
public GetCarouselItemsHandler(CarouselServiceContext context, ICache cache) { _context = context; _cache = cache; }
public GetUserByIdHandler(CarouselServiceContext context, ICache cache) { _context = context; _cache = cache; }
public GetAccountsHandler(CarouselServiceContext context, ICache cache) { _context = context; _cache = cache; }
public SyncHandler(CarouselServiceContext context, ICache cache) { _context = context; _cache = cache; }
public ConfirmRegistrationHandler(CarouselServiceContext context, ICache cache) { _context = context; _cache = cache; }