C# Class SPCalendarRecurrenceExpander.CSharpExample.SharePointHighTrustContext

Encapsulates all the information from SharePoint in HighTrust mode.
Inheritance: SharePointContext
Mostra file Open project: ronnieholm/SPCalendarRecurrenceExpander Class Usage Examples

Public Methods

Method Description
SharePointHighTrustContext ( Uri spHostUrl, Uri spAppWebUrl, string spLanguage, string spClientTag, string spProductNumber, System.Security.Principal.WindowsIdentity logonUserIdentity ) : Microsoft.IdentityModel.S2S.Protocols.OAuth2

Private Methods

Method Description
GetAccessTokenString ( DateTime>.Tuple &accessToken, Func tokenRenewalHandler ) : string

Ensures the access token is valid and returns it.

RenewAccessTokenIfNeeded ( DateTime>.Tuple &accessToken, Func tokenRenewalHandler ) : void

Renews the access token if it is not valid.

Method Details

SharePointHighTrustContext() public method

public SharePointHighTrustContext ( Uri spHostUrl, Uri spAppWebUrl, string spLanguage, string spClientTag, string spProductNumber, System.Security.Principal.WindowsIdentity logonUserIdentity ) : Microsoft.IdentityModel.S2S.Protocols.OAuth2
spHostUrl System.Uri
spAppWebUrl System.Uri
spLanguage string
spClientTag string
spProductNumber string
logonUserIdentity System.Security.Principal.WindowsIdentity
return Microsoft.IdentityModel.S2S.Protocols.OAuth2