Interface ILockedSessionService<TService>
- Namespace
- MVVrus.AspNetCore.ActiveSession
- Assembly
- MVVrus.AspNetCore.ActiveSession.dll
Represents an exclusive service accessor for a scoped service from the active session's DI container.
public interface ILockedSessionService<TService> : IDisposable
Type Parameters
TService
The type of the service to which this accessor was obtained.
- Inherited Members
Remarks
Call Dispose() to release the exclusive service lock represented by this accessor instance.
Properties
- IsReallyLocked
A flag showing that an access to the service has been really locked.
Contains true if the service was obtained from the active session's DI container, false otherwise.
- Service
A reference to an instance implementing the service to be accessed exclusively.