C# Class SimpleMusicPlayer.Core.AppHelper

Inheritance: IEnableLogger
Mostra file Open project: punker76/simple-music-player

Public Methods

Method Description
ApplicationDataPath ( ) : string
CanCreateFile ( string dir ) : bool
ConfigureApp ( Application app, string appName ) : void
HandleUnhandledException ( object exception, bool exitProgram ) : void
OnExitApp ( Application app ) : void

Private Methods

Method Description
BackgroundThreadUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
ConfigureHandlingUnhandledExceptions ( ) : void
ConfigureLogging ( ) : void
LogMemoryUsageAndInfos ( object state ) : void
WPFUIThreadException ( object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e ) : void

Method Details

ApplicationDataPath() public method

public ApplicationDataPath ( ) : string
return string

CanCreateFile() public static method

public static CanCreateFile ( string dir ) : bool
dir string
return bool

ConfigureApp() public method

public ConfigureApp ( Application app, string appName ) : void
app System.Windows.Application
appName string
return void

HandleUnhandledException() public method

public HandleUnhandledException ( object exception, bool exitProgram ) : void
exception object
exitProgram bool
return void

OnExitApp() public method

public OnExitApp ( Application app ) : void
app System.Windows.Application
return void