Class TenancyGuard
- Namespace
- The.Persistence.Write
- Assembly
- Instagile.dll
public static class TenancyGuard
- Inheritance
-
TenancyGuard
- Inherited Members
Methods
TryFindViolation(IReadOnlyList<WriteOperation>, Tenancy, Func<string, int?>, out string?)
Finds the first operation setting a TenantID not covered by the given tenancy.
public static bool TryFindViolation(IReadOnlyList<WriteOperation> ops, Tenancy tenancy, Func<string, int?> tenantIndexByType, out string? offendingTypeName)
Parameters
opsIReadOnlyList<WriteOperation>tenancyTenancytenantIndexByTypeFunc<string, int?>offendingTypeNamestring
Returns
Remarks
We don't allow "giving away" data to a tenant you can't access; consequently, we DO guarantee read-your-writes.