C# 클래스 Rock.Model.ExceptionLogService

The data access/service class for Rock.Model.ExceptionLog entity type objects.
파일 보기 프로젝트 열기: NewSpring/Rock 1 사용 예제들

공개 메소드들

메소드 설명
GetByParentId ( int parentId ) : IQueryable

Gets a collection of Rock.Model.ExceptionLog entities by the Id of their Parent exceptionId. Under most instances, only one child Rock.Model.ExceptionLog entity will be returned in the collection.

GetBySiteId ( int siteId ) : IQueryable

Gets Exception Logs by Person Id

Gets a collection of Rock.Model.ExceptionLog entities by the Id of the Rock.Model.Site that they occurred on.

LogException ( Exception ex, HttpContext context, int pageId = null, int siteId = null, PersonAlias personAlias = null ) : void

Logs new Rock.Model.ExceptionLog entities. This method serves as an interface to asynchronously log exceptions.

비공개 메소드들

메소드 설명
LogExceptions ( Exception ex, ExceptionLog log, bool isParent ) : void

Recursively logs exception and any children.

PopulateExceptionLog ( Exception ex, HttpContext context, int pageId, int siteId, PersonAlias personAlias ) : ExceptionLog

Populates the Rock.Model.ExceptionLog entity with the exception data.

메소드 상세

GetByParentId() 공개 메소드

Gets a collection of Rock.Model.ExceptionLog entities by the Id of their Parent exceptionId. Under most instances, only one child Rock.Model.ExceptionLog entity will be returned in the collection.
public GetByParentId ( int parentId ) : IQueryable
parentId int An containing the Id of the parent ExceptionLog entity to search by.
리턴 IQueryable

GetBySiteId() 공개 메소드

Gets Exception Logs by Person Id Gets a collection of Rock.Model.ExceptionLog entities by the Id of the Rock.Model.Site that they occurred on.
public GetBySiteId ( int siteId ) : IQueryable
siteId int An containing the Id of the to search by.
리턴 IQueryable

LogException() 공개 정적인 메소드

Logs new Rock.Model.ExceptionLog entities. This method serves as an interface to asynchronously log exceptions.
public static LogException ( Exception ex, HttpContext context, int pageId = null, int siteId = null, PersonAlias personAlias = null ) : void
ex System.Exception A object to log.
context System.Web.HttpContext The
pageId int A containing the Id of the that the exception occurred on. /// This parameter is nullable..
siteId int A containing the Id of the that the exception occurred on.
personAlias PersonAlias The person alias.
리턴 void