diff --git a/.gitignore b/.gitignore index ed6d1d2..b491d6a 100644 --- a/.gitignore +++ b/.gitignore @@ -180,15 +180,15 @@ DocProject/Help/Html2 DocProject/Help/html # Click-Once directory -publish/ +[Pp]ublish/ # Publish Web Output *.[Pp]ublish.xml *.azurePubxml # Note: Comment the next line if you want to checkin your web deploy settings, # but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj +#*.pubxml +#*.publishproj # Microsoft Azure Web App publish settings. Comment the next line if you want to # checkin your Azure Web App publish settings, but sensitive information contained diff --git a/ApiClient/ApiClient.csproj b/ApiClient/ApiClient.csproj new file mode 100644 index 0000000..6cc66f4 --- /dev/null +++ b/ApiClient/ApiClient.csproj @@ -0,0 +1,45 @@ + + + + WinExe + net10.0-windows + enable + enable + true + + ClientApiPoC.ApiClient + + true + true + true + win-x64 + true + false + + Mike Schumann + Copyright © 2026 $(Company) + 0.1.0 + $(AssemblyVersion) + en-US + + + + portable + + + + none + + + + + + + + + + + + + + diff --git a/ApiClient/App.xaml b/ApiClient/App.xaml new file mode 100644 index 0000000..2059c88 --- /dev/null +++ b/ApiClient/App.xaml @@ -0,0 +1,8 @@ + + + + + diff --git a/ApiClient/App.xaml.cs b/ApiClient/App.xaml.cs new file mode 100644 index 0000000..b003b04 --- /dev/null +++ b/ApiClient/App.xaml.cs @@ -0,0 +1,33 @@ +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using System.Windows; + +namespace ClientApiPoC.ApiClient { + public partial class App : Application { + private IHost _host; + + public App() { + _host = Host.CreateDefaultBuilder().ConfigureServices(services => { + // ViewModels: + services.AddTransient(); + // Views: + services.AddSingleton(); + }).Build(); + } + + protected override async void OnStartup(StartupEventArgs e) { + await _host.StartAsync(); + + var window = _host.Services.GetRequiredService(); + window.Show(); + + base.OnStartup(e); + } + + protected override async void OnExit(ExitEventArgs e) { + await _host.StopAsync(); + _host.Dispose(); + base.OnExit(e); + } + } +} \ No newline at end of file diff --git a/ApiClient/AssemblyInfo.cs b/ApiClient/AssemblyInfo.cs new file mode 100644 index 0000000..b0ec827 --- /dev/null +++ b/ApiClient/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/ApiClient/MainWindow.xaml b/ApiClient/MainWindow.xaml new file mode 100644 index 0000000..12fdf09 --- /dev/null +++ b/ApiClient/MainWindow.xaml @@ -0,0 +1,62 @@ + + + + + + + + + + + +