Commit ab99aaa2 authored by Eric Dieckman's avatar Eric Dieckman
Browse files

Add Nexus library

parent 7d0b8c69
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -47,6 +47,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "deploy", "deploy", "{5755EA
		Dockerfile = Dockerfile
	EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "External", "External", "{34C80861-393A-46AC-82E1-A66B96F113A6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cals.Nexus", "src\nexus\Cals.Nexus.csproj", "{A128E17F-AD22-4572-B5CB-B754789D6C2B}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
@@ -73,6 +77,10 @@ Global
		{0923BCFF-F3EC-4EB9-B8F7-38DCC0FE66F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{0923BCFF-F3EC-4EB9-B8F7-38DCC0FE66F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{0923BCFF-F3EC-4EB9-B8F7-38DCC0FE66F0}.Release|Any CPU.Build.0 = Release|Any CPU
		{A128E17F-AD22-4572-B5CB-B754789D6C2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A128E17F-AD22-4572-B5CB-B754789D6C2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A128E17F-AD22-4572-B5CB-B754789D6C2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A128E17F-AD22-4572-B5CB-B754789D6C2B}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
@@ -85,6 +93,7 @@ Global
		{02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {FFCF88A3-E4D2-43DC-A729-C0E628CE47C9}
		{918D047A-39CE-4642-BFD1-129B24E10D0B} = {FFCF88A3-E4D2-43DC-A729-C0E628CE47C9}
		{5755EAA3-A196-4ACC-B87C-549F6E6972E3} = {FFCF88A3-E4D2-43DC-A729-C0E628CE47C9}
		{A128E17F-AD22-4572-B5CB-B754789D6C2B} = {34C80861-393A-46AC-82E1-A66B96F113A6}
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {01E18905-19BD-4770-8522-96EF8CFF6467}
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@

	<!-- default package properties -->
	<PropertyGroup>
		<Company>AAE IT Services Center</Company>
		<Company>College of Agricultural &amp; Life Sciences</Company>
		<Copyright>© University of Wisconsin $([System.DateTime]::Now.Year)</Copyright>
		<Authors>Eric Dieckman</Authors>
		<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
@@ -41,7 +41,7 @@
	</PropertyGroup>

	<PropertyGroup>
		<LangVersion>11.0</LangVersion>
		<LangVersion>12.0</LangVersion>
	</PropertyGroup>
	
	<PropertyGroup>
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
	<ItemGroup>
		<ProjectReference Include="..\application\Application.csproj" />
		<ProjectReference Include="..\models\Models.csproj" />
		<ProjectReference Include="..\nexus\Cals.Nexus.csproj" />
	</ItemGroup>

	<ItemGroup>
+6 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Quartz;
using Cals.Nexus;

namespace Cals.Visor.Infrastructure;

@@ -53,6 +54,11 @@ public static class ServiceRegistration
            cfg.DecorateDomainEventNotifications = false;
        });

        services.AddNexus(cfg =>
        {
            cfg.RegisterServicesFromAssemblies(Assemblies.Infrastructure, Assemblies.Application);
        });

        return services;
    }
}
+8 −0
Original line number Diff line number Diff line
using System.Reflection;

namespace Cals.Nexus;

internal static class Assemblies
{
    public static readonly Assembly This = typeof(ICommand).Assembly;
}
Loading