Class ApplicationBase
- Namespace
- H.Extensions.ApplicationBase
- Assembly
- H.Extensions.ApplicationBase.dll
public abstract class ApplicationBase : Application, IQueryAmbient, IConfigureableApplication
- Inheritance
-
ApplicationBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ApplicationBase()
public ApplicationBase()
Properties
ILogger
public ILogService ILogger { get; }
Property Value
Methods
App_DispatcherUnhandledException(object, DispatcherUnhandledExceptionEventArgs)
protected void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
Parameters
Configure()
public void Configure()
Configure(IApplicationBuilder)
protected virtual void Configure(IApplicationBuilder app)
Parameters
ConfigureServices(IServiceCollection)
依赖注入注册服务
protected virtual void ConfigureServices(IServiceCollection services)
Parameters
services
IServiceCollection
CreateAppPathServce()
protected virtual IAppPathServce CreateAppPathServce()
Returns
CreateMainWindow(StartupEventArgs)
protected abstract Window CreateMainWindow(StartupEventArgs e)
Parameters
Returns
CurrentDomain_UnhandledException(object, UnhandledExceptionEventArgs)
protected void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
Parameters
sender
objecte
UnhandledExceptionEventArgs
GetSplashLoads()
protected virtual IEnumerable<ISplashLoad> GetSplashLoads()
Returns
InitExcetion()
protected virtual void InitExcetion()
InitServiceCollection()
protected void InitServiceCollection()
OnExit(ExitEventArgs)
Raises the Exit event.
protected override void OnExit(ExitEventArgs e)
Parameters
e
ExitEventArgsAn ExitEventArgs that contains the event data.
OnLogin(StartupEventArgs)
加载登录页面
protected virtual void OnLogin(StartupEventArgs e)
Parameters
OnSetting()
加载注入的配置信息
protected virtual void OnSetting()
OnSingleton(StartupEventArgs)
检查应用程序只需打开一个
public virtual void OnSingleton(StartupEventArgs e)
Parameters
OnSplashScreen(StartupEventArgs)
加载启动页面
protected virtual void OnSplashScreen(StartupEventArgs e)
Parameters
OnStartup(StartupEventArgs)
Raises the Startup event.
protected override void OnStartup(StartupEventArgs e)
Parameters
e
StartupEventArgsA StartupEventArgs that contains the event data.
ShowMessage(string, string)
protected virtual void ShowMessage(string message, string title = "提示")
Parameters
TaskScheduler_UnobservedTaskException(object, UnobservedTaskExceptionEventArgs)
异步线程抛出没有补货的异常
protected void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
Parameters
sender
objecte
UnobservedTaskExceptionEventArgs