C# Class Microsoft.HockeyApp.HockeyClientWPFExtensions

HockeyClientWPFExtensions class.
Mostra file Open project: bitstadium/HockeySDK-Windows

Public Methods

Method 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

Method 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 method

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
return Task

Configure() public static method

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

CreateFeedbackThread() public static method

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

OpenFeedbackThreadAsync() public static method

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
return Task

RegisterCustomDispatcherUnhandledExceptionLogic() public static method

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

RegisterCustomUnhandledExceptionLogic() public static method

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

RegisterCustomUnobserveredTaskExceptionLogic() public static method

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

RegisterDefaultUnobservedTaskExceptionHandler() public static method

Adds the handler for UnobservedTaskExceptions
public static RegisterDefaultUnobservedTaskExceptionHandler ( this @this ) : IHockeyClientConfigurable
@this this
return IHockeyClientConfigurable

SendCrashesAsync() public static method

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
return Task

UnregisterDefaultUnobservedTaskExceptionHandler() public static method

Removes the handler for UnobservedTaskExceptions
public static UnregisterDefaultUnobservedTaskExceptionHandler ( this @this ) : IHockeyClientConfigurable
@this this
return IHockeyClientConfigurable

UseCustomResourceManager() public static method

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
return IHockeyClientConfigurable