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(); + + } + +}