Exemple #1
0
        public static void UseAsDefault(CloudTable table, Action <KumoDictionaryAzureStorageTableProvider> configure = null)
        {
            var provider = new KumoDictionaryAzureStorageTableProvider(
                table,
                KumoDictionaryValueSerializer.Default
                );

            configure?.Invoke(provider);

            KumoDictionaryBackendProvider.Default = provider;
        }
Exemple #2
0
        public static void UseAsDefault(string connectionString, string tableName, Action <KumoDictionaryAzureStorageTableProvider> configure = null)
        {
            var provider = new KumoDictionaryAzureStorageTableProvider(
                connectionString,
                tableName,
                KumoDictionaryValueSerializer.Default
                );

            configure?.Invoke(provider);

            KumoDictionaryBackendProvider.Default = provider;
        }