예제 #1
0
        public AtsUserRepository(CloudStorageAccount storage, AtsUserServiceConfig config)
        {
            _defaultTenant = config.DefaultTenant;

            var client = storage.CreateCloudTableClient();

            _table = client.GetTableReference(config.TableName);
            _table.CreateIfNotExists();
        }
예제 #2
0
 public AtsUserRepository(AtsUserServiceConfig config)
     : this(CloudStorageAccount.Parse(config.TableStorageConnectionString), config)
 {
 }
 public AtsUserService(AtsUserServiceConfig config, AtsUserRepository repo)
     : base(config, repo)
 {
 }