Universe.Template.Base.Common
0.34.0-beta
This is a prerelease version of Universe.Template.Base.Common.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Universe.Template.Base.Common --version 0.34.0-beta
NuGet\Install-Package Universe.Template.Base.Common -Version 0.34.0-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Universe.Template.Base.Common" Version="0.34.0-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Universe.Template.Base.Common --version 0.34.0-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Universe.Template.Base.Common, 0.34.0-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Universe.Template.Base.Common as a Cake Addin #addin nuget:?package=Universe.Template.Base.Common&version=0.34.0-beta&prerelease // Install Universe.Template.Base.Common as a Cake Tool #tool nuget:?package=Universe.Template.Base.Common&version=0.34.0-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Universe.Template.Base.Common
Tester App에서 사용할 UI와 헬퍼 클래스 정의
AppBase : Application
- WPF <see cref="Application"/>의 공통 기능 구현
- 안잡힌 예외 처리
- <see cref="IHost"/> 생성, 설정 및 로거 등록
ViewContext
- View와 ViewModel을 동시에 DI에 등록하고
- 뷰의 DataContext를 뷰모델로 설정한다.
IPRogressDelegater
-
IProgress<(string cat, object msg)>
: UI 메시지 출력 기능 정의- UI(View)이외의 클래스에서 주입받아 사용
- UI는 이 인터페이스를 직접 구현하지 않는다 ~ 순환참조 방지!
- 약어: using UIR =
IProgress<(string cat, object msg)>
-
IProgressDelegater
: UIR 중계자 ~IProgress.Report()
구현자와 사용자 중계- UI는 이 인터페이스를 주입받아
PostAction
에 실구현 메소드를 주입한다.
- UI는 이 인터페이스를 주입받아
TesterMainWindow
-
MainWindow
의 베이스 클래스Mvvm.ObservableObject
구현IList<ReportItem> LogItems
: 로그 메시지 표시용DataGrid
의 바인딩 소스Progress<T>
를 통해UIR
구현하여IProgressDelegater.PostAction
에 주입
- UI 단축키 설정
Escape
: 진행중인 테스트 메소드 취소Ctrl + Delete
: 로그 메시지 모두 지우기- 나머지는 상속 클래스에서 구현
HostExtensions
- 확장메소드
IHostApplicationBuilder.UseProgressDelegater()
구현
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0-windows7.0
- CommunityToolkit.Mvvm (>= 8.2.2)
- Universe.Logging (>= 2.77.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.35.0-beta | 68 | 6/11/2024 |
0.34.0-beta | 64 | 6/4/2024 |
0.31.0-beta | 141 | 5/26/2024 |