﻿namespace NetCreditHub.AutoMappers
{
    using Configuration.Startup;

    /// <summary>
    /// 实现 <see cref="IModuleConfigurations"/> 的扩展方法, 允许配置 NetCreditHub.AutoMappers 模块.
    /// </summary>
    public static class HubWebApiConfigurationExtensions
    {
        /// <summary>
        /// 用于配置 NetCreditHub.AutoMappers 模块.
        /// </summary>
        public static IHubAutoMapperConfiguration HubAutoMapper(this IModuleConfigurations configurations)
        {
            return configurations.HubConfiguration.Get<IHubAutoMapperConfiguration>();
        }
    }
}