C# Class RepositoryT.EntityFramework.AutofacConsoleSample.AutofacServiceLocator

Inheritance: IServiceLocator
显示文件 Open project: ziyasal/RepositoryT.EntityFramework

Public Methods

Method Description
AutofacServiceLocator ( ILifetimeScope scope ) : System
GetService ( Type serviceType ) : object
GetServices ( Type serviceType ) : IEnumerable

Method Details

AutofacServiceLocator() public method

public AutofacServiceLocator ( ILifetimeScope scope ) : System
scope ILifetimeScope
return System

GetService() public method

public GetService ( Type serviceType ) : object
serviceType System.Type
return object

GetServices() public method

public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type
return IEnumerable