C# 클래스 SampleWebApp.SharePointContextProvider

Provides SharePointContext instances.
파일 보기 프로젝트 열기: upeo/inbloom-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
CheckRedirectionStatus ( HttpContext httpContext, Uri &redirectUrl ) : RedirectionStatus

Checks if it is necessary to redirect to SharePoint for user to authenticate.

CheckRedirectionStatus ( System.Web.HttpContextBase httpContext, Uri &redirectUrl ) : RedirectionStatus

Checks if it is necessary to redirect to SharePoint for user to authenticate.

CreateSharePointContext ( HttpRequest httpRequest ) : SharePointContext

Creates a SharePointContext instance with the specified HTTP request.

CreateSharePointContext ( System.Web.HttpRequestBase httpRequest ) : SharePointContext

Creates a SharePointContext instance with the specified HTTP request.

GetSharePointContext ( HttpContext httpContext ) : SharePointContext

Gets a SharePointContext instance associated with the specified HTTP context.

GetSharePointContext ( System.Web.HttpContextBase httpContext ) : SharePointContext

Gets a SharePointContext instance associated with the specified HTTP context.

Register ( SharePointContextProvider provider ) : void

Registers the specified SharePointContextProvider instance as current. It should be called by Application_Start() in Global.asax.

보호된 메소드들

메소드 설명
CreateSharePointContext ( Uri spHostUrl, Uri spAppWebUrl, string spLanguage, string spClientTag, string spProductNumber, System.Web.HttpRequestBase httpRequest ) : SharePointContext

Creates a SharePointContext instance.

LoadSharePointContext ( System.Web.HttpContextBase httpContext ) : SharePointContext

Loads the SharePointContext instance associated with the specified HTTP context.

SaveSharePointContext ( SharePointContext spContext, System.Web.HttpContextBase httpContext ) : void

Saves the specified SharePointContext instance associated with the specified HTTP context. null is accepted for clearing the SharePointContext instance associated with the HTTP context.

ValidateSharePointContext ( SharePointContext spContext, System.Web.HttpContextBase httpContext ) : bool

Validates if the given SharePointContext can be used with the specified HTTP context.

비공개 메소드들

메소드 설명
SharePointContextProvider ( ) : System

Initializes the default SharePointContextProvider instance.

메소드 상세

CheckRedirectionStatus() 공개 정적인 메소드

Checks if it is necessary to redirect to SharePoint for user to authenticate.
public static CheckRedirectionStatus ( HttpContext httpContext, Uri &redirectUrl ) : RedirectionStatus
httpContext System.Web.HttpContext The HTTP context.
redirectUrl System.Uri The redirect url to SharePoint if the status is ShouldRedirect. Null if the status is Ok or CanNotRedirect.
리턴 RedirectionStatus

CheckRedirectionStatus() 공개 정적인 메소드

Checks if it is necessary to redirect to SharePoint for user to authenticate.
public static CheckRedirectionStatus ( System.Web.HttpContextBase httpContext, Uri &redirectUrl ) : RedirectionStatus
httpContext System.Web.HttpContextBase The HTTP context.
redirectUrl System.Uri The redirect url to SharePoint if the status is ShouldRedirect. Null if the status is Ok or CanNotRedirect.
리턴 RedirectionStatus

CreateSharePointContext() 공개 메소드

Creates a SharePointContext instance with the specified HTTP request.
public CreateSharePointContext ( HttpRequest httpRequest ) : SharePointContext
httpRequest HttpRequest The HTTP request.
리턴 SharePointContext

CreateSharePointContext() 공개 메소드

Creates a SharePointContext instance with the specified HTTP request.
public CreateSharePointContext ( System.Web.HttpRequestBase httpRequest ) : SharePointContext
httpRequest System.Web.HttpRequestBase The HTTP request.
리턴 SharePointContext

CreateSharePointContext() 보호된 추상적인 메소드

Creates a SharePointContext instance.
protected abstract CreateSharePointContext ( Uri spHostUrl, Uri spAppWebUrl, string spLanguage, string spClientTag, string spProductNumber, System.Web.HttpRequestBase httpRequest ) : SharePointContext
spHostUrl System.Uri The SharePoint host url.
spAppWebUrl System.Uri The SharePoint app web url.
spLanguage string The SharePoint language.
spClientTag string The SharePoint client tag.
spProductNumber string The SharePoint product number.
httpRequest System.Web.HttpRequestBase The HTTP request.
리턴 SharePointContext

GetSharePointContext() 공개 메소드

Gets a SharePointContext instance associated with the specified HTTP context.
public GetSharePointContext ( HttpContext httpContext ) : SharePointContext
httpContext System.Web.HttpContext The HTTP context.
리턴 SharePointContext

GetSharePointContext() 공개 메소드

Gets a SharePointContext instance associated with the specified HTTP context.
public GetSharePointContext ( System.Web.HttpContextBase httpContext ) : SharePointContext
httpContext System.Web.HttpContextBase The HTTP context.
리턴 SharePointContext

LoadSharePointContext() 보호된 추상적인 메소드

Loads the SharePointContext instance associated with the specified HTTP context.
protected abstract LoadSharePointContext ( System.Web.HttpContextBase httpContext ) : SharePointContext
httpContext System.Web.HttpContextBase The HTTP context.
리턴 SharePointContext

Register() 공개 정적인 메소드

Registers the specified SharePointContextProvider instance as current. It should be called by Application_Start() in Global.asax.
public static Register ( SharePointContextProvider provider ) : void
provider SharePointContextProvider The SharePointContextProvider to be set as current.
리턴 void

SaveSharePointContext() 보호된 추상적인 메소드

Saves the specified SharePointContext instance associated with the specified HTTP context. null is accepted for clearing the SharePointContext instance associated with the HTTP context.
protected abstract SaveSharePointContext ( SharePointContext spContext, System.Web.HttpContextBase httpContext ) : void
spContext SharePointContext The SharePointContext instance to be saved, or null.
httpContext System.Web.HttpContextBase The HTTP context.
리턴 void

ValidateSharePointContext() 보호된 추상적인 메소드

Validates if the given SharePointContext can be used with the specified HTTP context.
protected abstract ValidateSharePointContext ( SharePointContext spContext, System.Web.HttpContextBase httpContext ) : bool
spContext SharePointContext The SharePointContext.
httpContext System.Web.HttpContextBase The HTTP context.
리턴 bool