Show / Hide Table of Contents

Interface IContextResolver

Interface implemented by context resolvers. It is used by the ISoDatabaseContextFactory for resolving context from the underlying application

Namespace: SuperOffice.Security.Principal
Assembly: SoCore.dll
Syntax
public interface IContextResolver
Remarks

A Context resolver is responsible for determine if a particular user belongs to a particular context.

Methods

TryResolveContext(out string)

Business logic should call ISoDatabaseContextFactory.TryResolveContext(out string) to resolve context. This method should only be called by implementations of ISoDatabaseContextFactory

Declaration
bool TryResolveContext(out string context)
Parameters
Type Name Description
string context
Returns
Type Description
bool
Remarks

A Context resolver is responsible for determine if a particular user belongs to a particular context.

TryResolveContextFromClaims(IEnumerable<ClaimsIdentity>, out string)

Business logic should call ISoDatabaseContextFactory.TryResolveContext(out string) to resolve context. This method should only be called by implementations of ISoDatabaseContextFactory

Declaration
bool TryResolveContextFromClaims(IEnumerable<ClaimsIdentity> identities, out string context)
Parameters
Type Name Description
IEnumerable<ClaimsIdentity> identities
string context

Name of the resolved context

Returns
Type Description
bool

True if the context was successfully resolved.

Remarks

A Context resolver is responsible for determine if a particular user belongs to a particular context.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top