AutofacContainer

时间:2024-06-01 11:34:50
    /// <summary>
/// Autofac容器
/// </summary>
public class AutofacContainer
{
public static IContainer Container { get; private set; } public static void Set(IContainer c)
{
Container = c;
} public static T Resolve<T>()
{
return Container.Resolve<T>();
}
}

相关文章