From edf0f0be5f770b847eec571c49d58b757041d137 Mon Sep 17 00:00:00 2001 From: Jerome Haltom Date: Fri, 20 Dec 2024 22:29:59 -0600 Subject: [PATCH] Add a sample app. --- .../Cogito.Components.Sample1.csproj | 19 +++++++++++++++++++ src/Cogito.Components.Sample1/Program.cs | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/Cogito.Components.Sample1/Cogito.Components.Sample1.csproj create mode 100644 src/Cogito.Components.Sample1/Program.cs diff --git a/src/Cogito.Components.Sample1/Cogito.Components.Sample1.csproj b/src/Cogito.Components.Sample1/Cogito.Components.Sample1.csproj new file mode 100644 index 0000000..b815ffa --- /dev/null +++ b/src/Cogito.Components.Sample1/Cogito.Components.Sample1.csproj @@ -0,0 +1,19 @@ + + + + Exe + net481;net8.0 + enable + + + + + + + + + + + + + diff --git a/src/Cogito.Components.Sample1/Program.cs b/src/Cogito.Components.Sample1/Program.cs new file mode 100644 index 0000000..c22e2d9 --- /dev/null +++ b/src/Cogito.Components.Sample1/Program.cs @@ -0,0 +1,19 @@ +using System.Threading.Tasks; + +using Cogito.Autofac; +using Cogito.Autofac.DependencyInjection; + +using Microsoft.Extensions.Hosting; + +namespace Cogito.Components.Sample1 +{ + + public static class Program + { + public static async Task Main(string[] args) => await Host.CreateDefaultBuilder(args) + .UseServiceProviderFactory(new AutofacServiceProviderFactory(b => b.RegisterAllAssemblyModules())) + .RunConsoleAsync(); + + } + +}