Table of Contents

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

ILogService

Methods

App_DispatcherUnhandledException(object, DispatcherUnhandledExceptionEventArgs)

protected void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)

Parameters

sender object
e DispatcherUnhandledExceptionEventArgs

Configure()

public void Configure()

Configure(IApplicationBuilder)

protected virtual void Configure(IApplicationBuilder app)

Parameters

app IApplicationBuilder

ConfigureServices(IServiceCollection)

依赖注入注册服务

protected virtual void ConfigureServices(IServiceCollection services)

Parameters

services IServiceCollection

CreateAppPathServce()

protected virtual IAppPathServce CreateAppPathServce()

Returns

IAppPathServce

CreateMainWindow(StartupEventArgs)

protected abstract Window CreateMainWindow(StartupEventArgs e)

Parameters

e StartupEventArgs

Returns

Window

CurrentDomain_UnhandledException(object, UnhandledExceptionEventArgs)

protected void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)

Parameters

sender object
e UnhandledExceptionEventArgs

GetSplashLoads()

protected virtual IEnumerable<ISplashLoad> GetSplashLoads()

Returns

IEnumerable<ISplashLoad>

InitExcetion()

protected virtual void InitExcetion()

InitServiceCollection()

protected void InitServiceCollection()

OnExit(ExitEventArgs)

Raises the Exit event.

protected override void OnExit(ExitEventArgs e)

Parameters

e ExitEventArgs

An ExitEventArgs that contains the event data.

OnLogin(StartupEventArgs)

加载登录页面

protected virtual void OnLogin(StartupEventArgs e)

Parameters

e StartupEventArgs

OnSetting()

加载注入的配置信息

protected virtual void OnSetting()

OnSingleton(StartupEventArgs)

检查应用程序只需打开一个

public virtual void OnSingleton(StartupEventArgs e)

Parameters

e StartupEventArgs

OnSplashScreen(StartupEventArgs)

加载启动页面

protected virtual void OnSplashScreen(StartupEventArgs e)

Parameters

e StartupEventArgs

OnStartup(StartupEventArgs)

Raises the Startup event.

protected override void OnStartup(StartupEventArgs e)

Parameters

e StartupEventArgs

A StartupEventArgs that contains the event data.

ShowMessage(string, string)

protected virtual void ShowMessage(string message, string title = "提示")

Parameters

message string
title string

TaskScheduler_UnobservedTaskException(object, UnobservedTaskExceptionEventArgs)

异步线程抛出没有补货的异常

protected void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)

Parameters

sender object
e UnobservedTaskExceptionEventArgs