コード例 #1
0
        public UserBuilder UseAzureTableStorage(Action <AzureTableOptions> configureOptions)
        {
            Services.AddSingleton <AzureTableProvider>();
            Services.AddStore <IUserStore, UserStore>();
            Services.AddInstallerStep <SchemaInstaller>();
            Services.AddSingleton(provider => {
                var options = new AzureTableOptions();
                configureOptions(options);
                return(options);
            });

            return(this);
        }
コード例 #2
0
 protected abstract string GetTableName(AzureTableOptions options);
コード例 #3
0
 protected override string GetTableName(AzureTableOptions options)
 {
     return(options.EmotionTableName);
 }