C# Class Microsoft.HockeyApp.HockeyClientExtensionsWinUniversal

Extensions for Win 8.1 Store Apps and Windows Phone 8.1 Store Apps
显示文件 Open project: bitstadium/HockeySDK-Windows

Public Methods

Method Description
AuthorizeUser ( this @this, System.Action successAction, string eMail = null, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful ) : void

Inititate user authorization and define a action to perform when authorization is successfull

AuthorizeUser ( this @this, Type pageTypeForSuccessRedirect, string eMail = null, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful ) : void

Inititate user authorization and define a page navigate to when authorization is successfull

IdentifyUser ( this @this, string appSecret, System.Action successAction, string eMail = null, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful ) : void

Inititate user identification and define a action to perform when authorization is successfull

IdentifyUser ( this @this, string appSecret, Type pageTypeForSuccessRedirect, string eMail = null, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful ) : void

Inititate user identification and define a page to navigate to when authorization is successfull

LogoutUserAsync ( this @this ) : System.Threading.Tasks.Task

Delete an already obtained user-token if existing

SendCrashesAsync ( this @this, bool sendWithoutAsking = false ) : Task

Send any collected crashes to the HockeyApp server. You should normally call this during startup of your app.

Method Details

AuthorizeUser() public static method

Inititate user authorization and define a action to perform when authorization is successfull
public static AuthorizeUser ( this @this, System.Action successAction, string eMail = null, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful ) : void
@this this
successAction System.Action Action to perform when login is successfull
eMail string [Optional] E-Mail adress to prefill form
tokenValidationPolicy TokenValidationPolicy [Optional] Default is EveryLogin
authValidationMode AuthValidationMode [Optional] Default is Graceful
return void

AuthorizeUser() public static method

Inititate user authorization and define a page navigate to when authorization is successfull
public static AuthorizeUser ( this @this, Type pageTypeForSuccessRedirect, string eMail = null, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful ) : void
@this this
pageTypeForSuccessRedirect System.Type Pagetype to navigate when login is successfull
eMail string [Optional] E-Mail adress to prefill form
tokenValidationPolicy TokenValidationPolicy [Optional] Default is EveryLogin
authValidationMode AuthValidationMode [Optional] Default is Graceful
return void

IdentifyUser() public static method

Inititate user identification and define a action to perform when authorization is successfull
public static IdentifyUser ( this @this, string appSecret, System.Action successAction, string eMail = null, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful ) : void
@this this
appSecret string The application secret from HockeyApp.
successAction System.Action Action to perform when login is successfull
eMail string [Optional] E-Mail adress to prefill form
tokenValidationPolicy TokenValidationPolicy [Optional] Default is EveryLogin
authValidationMode AuthValidationMode [Optional] Default is Graceful
return void

IdentifyUser() public static method

Inititate user identification and define a page to navigate to when authorization is successfull
public static IdentifyUser ( this @this, string appSecret, Type pageTypeForSuccessRedirect, string eMail = null, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful ) : void
@this this
appSecret string your app secret from HockeyApp
pageTypeForSuccessRedirect System.Type Pagetype to navigate when login is successfull
eMail string [Optional] E-Mail adress to prefill form
tokenValidationPolicy TokenValidationPolicy [Optional] Default is EveryLogin
authValidationMode AuthValidationMode [Optional] Default is Graceful
return void

LogoutUserAsync() public static method

Delete an already obtained user-token if existing
public static LogoutUserAsync ( this @this ) : System.Threading.Tasks.Task
@this this
return System.Threading.Tasks.Task

SendCrashesAsync() public static method

Send any collected crashes to the HockeyApp server. You should normally call this during startup of your app.
public static SendCrashesAsync ( this @this, bool sendWithoutAsking = false ) : Task
@this this
sendWithoutAsking bool configures if available crashes are sent immediately or if the user should be asked if the crashes should be sent or discarded
return Task