Beispiel #1
0
 public AzureStorageUserRepository(IdentityContextTableStorageOptions options, UserFactory userFactory, IMapper mapper)
     : base(options)
 {
     _options     = options;
     _userFactory = userFactory;
     _mapper      = mapper;
 }
        public Task Initialize(IConfiguration config)
        {
            _options = config.GetSection("IdentityContextTableStorageOptions")
                       .Get <IdentityContextTableStorageOptions>();

            _tableConfig = new TableConfiguration.TableConfiguration(_options);

            Log.Information("IaAContext initialization complete.");
            return(Task.CompletedTask);
        }
        public void OneTimeSetup(IConfiguration configuration)
        {
            _options = configuration.GetSection("IdentityContextTableStorageOptions")
                       .Get <IdentityContextTableStorageOptions>();

            _tableConfig = new TableConfiguration(_options);
            var result = _tableConfig.ConfigureTables().ToEither().Result;

            result.IsRight.Should().BeTrue("Azure Storage should be configured correctly");
        }
 public AzureStorageUserRepository(IdentityContextTableStorageOptions options)
 {
     _options = options;
 }