15 lines
336 B
C#
15 lines
336 B
C#
using iMES.Core.Extensions;
|
|
using System;
|
|
using iMES.Core.Configuration;
|
|
|
|
namespace iMES.Core.Extensions.AutofacManager
|
|
{
|
|
public class AutofacContainerModule
|
|
{
|
|
public static TService GetService<TService>() where TService:class
|
|
{
|
|
return typeof(TService).GetService() as TService;
|
|
}
|
|
}
|
|
}
|