Initial Commit
This commit is contained in:
15
Shared/Models/Stateless/IAppSettingsController.cs
Normal file
15
Shared/Models/Stateless/IAppSettingsController.cs
Normal file
@ -0,0 +1,15 @@
|
||||
namespace Barcode.Host.Shared.Models.Stateless;
|
||||
|
||||
public interface IAppSettingsController<T>
|
||||
{
|
||||
|
||||
enum Action : int
|
||||
{
|
||||
App = 0,
|
||||
DevOps = 1
|
||||
}
|
||||
|
||||
static string GetRouteName() => nameof(IAppSettingsController<T>)[1..^10];
|
||||
T GetAppSettings();
|
||||
|
||||
}
|
10
Shared/Models/Stateless/IAppSettingsRepository.cs
Normal file
10
Shared/Models/Stateless/IAppSettingsRepository.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Barcode.Host.Shared.Models.Stateless;
|
||||
|
||||
public interface IAppSettingsRepository<T>
|
||||
{
|
||||
|
||||
T GetAppSettings();
|
||||
string GetBuildNumberAndGitCommitSeven();
|
||||
void VerifyConnectionStrings();
|
||||
|
||||
}
|
10
Shared/Models/Stateless/IMethodName.cs
Normal file
10
Shared/Models/Stateless/IMethodName.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Barcode.Host.Shared.Models.Stateless;
|
||||
|
||||
public interface IMethodName
|
||||
{
|
||||
|
||||
static string? GetActualAsyncMethodName([CallerMemberName] string? name = null) => name;
|
||||
|
||||
}
|
Reference in New Issue
Block a user