mirror of
https://github.com/cq-panda/Vue.NetCore.git
synced 2026-10-18 22:46:05 +08:00
15 lines
333 B
C#
15 lines
333 B
C#
using VOL.Core.Extensions;
|
|
using System;
|
|
using VOL.Core.Configuration;
|
|
|
|
namespace VOL.Core.Extensions.AutofacManager
|
|
{
|
|
public class AutofacContainerModule
|
|
{
|
|
public static TService GetService<TService>() where TService:class
|
|
{
|
|
return typeof(TService).GetService() as TService;
|
|
}
|
|
}
|
|
}
|