Init Git
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace AMREZ.EOP.Abstractions.Applications.Tenancy;
|
||||
|
||||
public interface ITenantContext
|
||||
{
|
||||
string TenantKey { get; }
|
||||
string Id { get; }
|
||||
string? Schema { get; }
|
||||
string? ConnectionString { get; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace AMREZ.EOP.Abstractions.Applications.Tenancy;
|
||||
|
||||
public interface ITenantDbContextFactory
|
||||
{
|
||||
TContext Create<TContext>(ITenantContext tenant) where TContext : class;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace AMREZ.EOP.Abstractions.Applications.Tenancy;
|
||||
|
||||
public interface ITenantResolver
|
||||
{
|
||||
ITenantContext? Resolve(HttpContext http, object? hint = null);
|
||||
}
|
||||
Reference in New Issue
Block a user