Show / Hide Table of Contents

Class OrganisationStoreExtensions

Extension methods for IOrganisationStore<TOrganisation>.

Inheritance
Object
OrganisationStoreExtensions
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public static class OrganisationStoreExtensions

Methods

FindByIdAsync<TOrganisation>(IOrganisationStore<TOrganisation>, Guid, CancellationToken)

Finds and returns a tenant, if any, who has the specified tenantId.

Declaration
public static async Task<TOrganisation> FindByIdAsync<TOrganisation>(this IOrganisationStore<TOrganisation> store, Guid tenantId, CancellationToken cancellationToken = default(CancellationToken))
    where TOrganisation : class, IOrganisation
Parameters
IOrganisationStore<TOrganisation> store

The IOrganisationStore<TOrganisation> to use for underlying functionality.

System.Guid tenantId

The tenant ID to search for.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.

Returns
System.Threading.Tasks.Task<TOrganisation>

The System.Threading.Tasks.Task that represents the asynchronous operation, containing the tenant matching the specified tenantId if it exists.

Type Parameters
TOrganisation

Back to top Generated by DocFX