TenantNotResolvedException class
Namespace: Tenantry · Package: Tenantry.Core · API reference
Thrown when an operation needs a current tenant and none is current, or when the tenant it names does not exist (TenantNotFoundException).
public class TenantNotResolvedException : InvalidOperationException, ISerializableInherits Exception → SystemException → InvalidOperationException.
Implements ISerializable.
Derived types: TenantNotFoundException.
Constructors
TenantNotResolvedException()
Initialises a new instance with a default message.
public TenantNotResolvedException()TenantNotResolvedException(string)
Initialises a new instance with a custom message.
public TenantNotResolvedException(string message)Parameters:
messagestring: The message that describes the error.
TenantNotResolvedException(string, Exception)
Initialises a new instance with a custom message and inner exception.
public TenantNotResolvedException(string message, Exception innerException)Parameters:
messagestring: The message that describes the error.innerExceptionException: The exception that caused this one.
TenantNotFoundException class
Thrown when a tenant is looked up by its id and the tenant store has no tenant with that id, for example by ITenantScopeFactory<TKey>.RunInScopeAsynctenantry-itenantscopefactory.md.
TenantStoreCacheOptions class
How Tenantry caches the tenants it reads from the tenant store.