using HaBookCms.AzureStorage.AzureTable.Implements;
using HaBookCms.AzureStorage.AzureTable.Interfaces;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
namespace HaBookCms.AzureStorage.Extensions
{
public static class AzureStorageServiceCollectionExtensions
{
///
/// Creates a builder.
///
/// The services.
///
private static AzureStorageBuilder AddAzureTableServerBuilder(this IServiceCollection services)
{
return new AzureStorageBuilder(services);
}
///
/// Adds AddAzureTableStorage.
///
/// The services.
///
public static AzureStorageBuilder AddAzureTableStorage(this IServiceCollection services)
{
var builder = services.AddAzureTableServerBuilder();
services.AddSingleton();
return builder;
}
}
}