Table of Contents

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

ops IReadOnlyList<WriteOperation>
tenancy Tenancy
tenantIndexByType Func<string, int?>
offendingTypeName string

Returns

bool

Remarks

We don't allow "giving away" data to a tenant you can't access; consequently, we DO guarantee read-your-writes.