C# Class Microsoft.HockeyApp.HockeyClientWPFExtensions

HockeyClientWPFExtensions class.
Afficher le fichier Open project: bitstadium/HockeySDK-Windows

Méthodes publiques

Méthode Description
CheckForUpdatesAsync ( this @this, bool autoShowUi, Func shutdownActions = null, Action updateAvailableAction = null ) : Task

Check for available updates asynchronously.

Configure ( this @this, string identifier ) : IHockeyClientConfigurable

Configures the client.

CreateFeedbackThread ( this @this ) : IFeedbackThread

Creates a new Feedback-Thread. Thread is stored on the server with the first message.

OpenFeedbackThreadAsync ( this @this, string feedbackToken ) : Task

Opens a Feedback-Thread on the server.

RegisterCustomDispatcherUnhandledExceptionLogic ( this @this, Action customAction ) : IHockeyClientConfigurable

This will run after HockeyApp has written the crash-log to disk.

RegisterCustomUnhandledExceptionLogic ( this @this, Action customAction ) : IHockeyClientConfigurable

This will run after HockeyApp has written the crash-log to disk.

RegisterCustomUnobserveredTaskExceptionLogic ( this @this, Action customAction ) : IHockeyClientConfigurable

This will run after HockeyApp has written the crash-log to disk.

RegisterDefaultUnobservedTaskExceptionHandler ( this @this ) : IHockeyClientConfigurable

Adds the handler for UnobservedTaskExceptions

SendCrashesAsync ( this @this, System.Boolean sendAutomatically = false ) : Task

Send crashes to the HockeyApp server. If crashes are available a messagebox will popoup to ask the user if he wants to send crashes.

UnregisterDefaultUnobservedTaskExceptionHandler ( this @this ) : IHockeyClientConfigurable

Removes the handler for UnobservedTaskExceptions

UseCustomResourceManager ( this @this, ResourceManager manager ) : IHockeyClientConfigurable

Provide a custom resource manager to override standard sdk i18n strings

Private Methods

Méthode Description
CurrentDomain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
Current_DispatcherUnhandledException ( object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e ) : void
GetMD5Hash ( string sourceString ) : string
TaskScheduler_UnobservedTaskException ( object sender, System.Threading.Tasks.UnobservedTaskExceptionEventArgs e ) : void

Method Details

CheckForUpdatesAsync() public static méthode

Check for available updates asynchronously.
public static CheckForUpdatesAsync ( this @this, bool autoShowUi, Func shutdownActions = null, Action updateAvailableAction = null ) : Task
@this this
autoShowUi bool Use the default update dialogs
shutdownActions Func Callback to gracefully stop your application. If using default-ui, call has to be provided.
updateAvailableAction Action Callback for available versions, if you want to provide own update dialogs
Résultat Task

Configure() public static méthode

Configures the client.
public static Configure ( this @this, string identifier ) : IHockeyClientConfigurable
@this this
identifier string Identifier.
Résultat IHockeyClientConfigurable

CreateFeedbackThread() public static méthode

Creates a new Feedback-Thread. Thread is stored on the server with the first message.
public static CreateFeedbackThread ( this @this ) : IFeedbackThread
@this this
Résultat IFeedbackThread

OpenFeedbackThreadAsync() public static méthode

Opens a Feedback-Thread on the server.
public static OpenFeedbackThreadAsync ( this @this, string feedbackToken ) : Task
@this this
feedbackToken string A guid which identifies the Feedback-Thread
Résultat Task

RegisterCustomDispatcherUnhandledExceptionLogic() public static méthode

This will run after HockeyApp has written the crash-log to disk.
public static RegisterCustomDispatcherUnhandledExceptionLogic ( this @this, Action customAction ) : IHockeyClientConfigurable
@this this
customAction Action
Résultat IHockeyClientConfigurable

RegisterCustomUnhandledExceptionLogic() public static méthode

This will run after HockeyApp has written the crash-log to disk.
public static RegisterCustomUnhandledExceptionLogic ( this @this, Action customAction ) : IHockeyClientConfigurable
@this this
customAction Action
Résultat IHockeyClientConfigurable

RegisterCustomUnobserveredTaskExceptionLogic() public static méthode

This will run after HockeyApp has written the crash-log to disk.
public static RegisterCustomUnobserveredTaskExceptionLogic ( this @this, Action customAction ) : IHockeyClientConfigurable
@this this
customAction Action
Résultat IHockeyClientConfigurable

RegisterDefaultUnobservedTaskExceptionHandler() public static méthode

Adds the handler for UnobservedTaskExceptions
public static RegisterDefaultUnobservedTaskExceptionHandler ( this @this ) : IHockeyClientConfigurable
@this this
Résultat IHockeyClientConfigurable

SendCrashesAsync() public static méthode

Send crashes to the HockeyApp server. If crashes are available a messagebox will popoup to ask the user if he wants to send crashes.
public static SendCrashesAsync ( this @this, System.Boolean sendAutomatically = false ) : Task
@this this
sendAutomatically System.Boolean if true crashes will be sent without asking
Résultat Task

UnregisterDefaultUnobservedTaskExceptionHandler() public static méthode

Removes the handler for UnobservedTaskExceptions
public static UnregisterDefaultUnobservedTaskExceptionHandler ( this @this ) : IHockeyClientConfigurable
@this this
Résultat IHockeyClientConfigurable

UseCustomResourceManager() public static méthode

Provide a custom resource manager to override standard sdk i18n strings
public static UseCustomResourceManager ( this @this, ResourceManager manager ) : IHockeyClientConfigurable
@this this
manager System.Resources.ResourceManager resource manager to use
Résultat IHockeyClientConfigurable