C# 클래스 Elmah.ServiceCenter

Central point for locating arbitrary services.
파일 보기 프로젝트 열기: elmah/Elmah 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Default ServiceProviderQueryHandler

공개 메소드들

메소드 설명
FindService ( object context, Type serviceType ) : object

Attempts to locate a service of a given type based on a given context. If the service is not available, a null reference is returned.

GetService ( object context, Type serviceType ) : object

Gets a service of a given type based on a given context. If the service is not available, an exception is thrown.

GetServiceProvider ( object context ) : IServiceProvider

Gets an IServiceProvider object based on a supplied context and which can be used to request further services.

비공개 메소드들

메소드 설명
CreateServiceContainer ( object context ) : IServiceProvider
ServiceCenter ( ) : System

메소드 상세

FindService() 공개 정적인 메소드

Attempts to locate a service of a given type based on a given context. If the service is not available, a null reference is returned.
public static FindService ( object context, Type serviceType ) : object
context object
serviceType System.Type
리턴 object

GetService() 공개 정적인 메소드

Gets a service of a given type based on a given context. If the service is not available, an exception is thrown.
public static GetService ( object context, Type serviceType ) : object
context object
serviceType System.Type
리턴 object

GetServiceProvider() 공개 정적인 메소드

Gets an IServiceProvider object based on a supplied context and which can be used to request further services.
public static GetServiceProvider ( object context ) : IServiceProvider
context object
리턴 IServiceProvider

프로퍼티 상세

Default 공개적으로 정적으로 프로퍼티

The default and factory-supplied implementation of ServiceProviderQueryHandler.
public static ServiceProviderQueryHandler Default
리턴 ServiceProviderQueryHandler