|
using LM.Core.Extensions;
|
|
using System;
|
|
using LM.Core.Configuration;
|
|
|
|
namespace LM.Core.Extensions.AutofacManager
|
|
{
|
|
public class AutofacContainerModule
|
|
{
|
|
public static TService GetService<TService>() where TService:class
|
|
{
|
|
return typeof(TService).GetService() as TService;
|
|
}
|
|
}
|
|
}
|