Share via


ITeamFoundationRequestFilter 인터페이스

ITeamFoundationRequestFilter는 완료를 처리 하기 전에 요청에 대 한 알림을 수신 하는 데 사용 됩니다.

네임스페이스:  Microsoft.TeamFoundation.Framework.Server
어셈블리:  Microsoft.TeamFoundation.Framework.Server(Microsoft.TeamFoundation.Framework.Server.dll)

구문

‘선언
<InheritedExportAttribute> _
Public Interface ITeamFoundationRequestFilter
[InheritedExportAttribute]
public interface ITeamFoundationRequestFilter

ITeamFoundationRequestFilter 형식에서는 다음과 같은 멤버를 노출합니다.

메서드

  이름 설명
Public 메서드 BeginRequest BeginRequest은 TFS는 사이트/호스트 요청 대상 및 확인 요청 처리를 결정 한 후에 호출 됩니다. BeginRequest 호출 모든 요청에 대해 보장 되지 않습니다. ITeamFoundationRequestFilter는 BeginRequest 요청을 조기에 완료 하 고 호출자에 게 반환 되는 오류 메시지에는 RequestFilterException을 throw 할 수 있습니다.
Public 메서드 EndRequest EndRequest은 요청이 완료 된 후에 호출 됩니다. 모든 요청에는 BeginRequest 일치 하는 EndRequest 호출을 해야 합니다. 요청을 완료 하는 지금 있기 때문에 예외는 무시 됩니다.
Public 메서드 EnterMethod EnterMethod이이 요청에 대해 실행 중인 메서드에 선언 된 후에 호출 됩니다.EnterMethod 기본 메서드 호출 시 정보를 사용할 수 있습니다.여기, 메서드 이름, 형식 및 입력된 매개 변수 목록이 있습니다. 이 정보는 requestContext.Method에서 사용할 수 있습니다. ITeamFoundationRequestFilter는 EnterMethod 요청을 조기에 완료 하 고 호출자에 게 반환 되는 오류 메시지에는 RequestFilterException을 throw 할 수 있습니다.
Public 메서드 LeaveMethod LeaveMethod는 메서드가 완료 될 때 호출 됩니다.EnterMethod가 호출 되 면 LeaveMethod도 항상 호출 해야 합니다. 요청을 완료 하는 지금 있기 때문에 예외는 무시 됩니다.
Public 메서드 RequestReady RequestReady 요청에서 인증을 완료 하 고 실행이 시작 되기 직전에 호출 됩니다.이 시점에서 requestContext.UserContext 속성에는 인증 된 사용자 정보가 포함 됩니다. ITeamFoundationRequestFilter는 RequestReady 요청을 조기에 완료 하 고 호출자에 게 반환 되는 오류 메시지에는 RequestFilterException을 throw 할 수 있습니다.

위쪽

참고 항목

참조

Microsoft.TeamFoundation.Framework.Server 네임스페이스