Class EntityState<T>
public class EntityState<T> : IDisposable where T : class, IEntity
Type Parameters
T
- Inheritance
-
EntityState<T>
- Implements
- Inherited Members
Constructors
EntityState(IServices, Options, PersistentComponentState, ILogger<EntityState<T>>)
public EntityState(IServices services, Options options, PersistentComponentState applicationState, ILogger<EntityState<T>> logger)
Parameters
servicesIServicesoptionsOptionsapplicationStatePersistentComponentStateloggerILogger<EntityState<T>>
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
RegisterPersist(T, string)
public void RegisterPersist(T entity, string key = null)
Parameters
entityTkeystring
TryRestore(out T?, IEntityContext?, string)
public bool TryRestore(out T? entity, IEntityContext? context = null, string key = null)
Parameters
entityTcontextIEntityContextkeystring