-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
STX.SPAL.Core/Brokers/Assemblies/AssemblyBroker.Assemblies.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using System.Reflection; | ||
|
||
namespace STX.SPAL.Core.Brokers.Assemblies | ||
{ | ||
internal partial class AssemblyBroker | ||
{ | ||
public Assembly GetAssembly(string assemblyPath) => | ||
Assembly.LoadFrom(assemblyPath); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using System.IO; | ||
using System.Reflection; | ||
|
||
namespace STX.SPAL.Core.Brokers.Assemblies | ||
{ | ||
internal partial class AssemblyBroker | ||
{ | ||
public string[] GetApplicationAssemblies() | ||
{ | ||
string applicationPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); | ||
|
||
return Directory.GetFiles(applicationPath, "*.dll"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
namespace STX.SPAL.Core.Brokers.Assemblies | ||
{ | ||
internal partial class AssemblyBroker : IAssemblyBroker | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
STX.SPAL.Core/Brokers/Assemblies/IAssemblyBroker.Assemblies.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using System.Reflection; | ||
|
||
namespace STX.SPAL.Core.Brokers.Assemblies | ||
{ | ||
internal partial interface IAssemblyBroker | ||
{ | ||
Assembly GetAssembly(string fullPath); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
namespace STX.SPAL.Core.Brokers.Assemblies | ||
{ | ||
internal partial interface IAssemblyBroker | ||
{ | ||
string[] GetApplicationAssemblies(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// Copyright (c) The Standard Organization: A coalition of the Good-Hearted Engineers | ||
// ---------------------------------------------------------------------------------- | ||
|
||
namespace STX.SPAL.Core.Brokers.Assemblies | ||
{ | ||
internal partial interface IAssemblyBroker | ||
{ | ||
} | ||
} |