mirror of
https://github.com/riperiperi/FreeSO
synced 2026-08-13 20:26:13 -04:00
MPL per-file was used in older project files, but should apply to the whole project, so having it there was redundant.
43 lines
981 B
C#
43 lines
981 B
C#
using FSO.Common.Security;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FSO.Common.DataService.Framework
|
|
{
|
|
public abstract class AbstractDataServiceProvider<KEY, VALUE> : IDataServiceProvider where VALUE : IModel
|
|
{
|
|
public virtual void DemandMutation(object entity, MutationType type, string path, object value, ISecurityContext context)
|
|
{
|
|
}
|
|
|
|
public virtual void PersistMutation(object entity, MutationType type, string path, object value)
|
|
{
|
|
}
|
|
|
|
public virtual void Init()
|
|
{
|
|
}
|
|
|
|
public abstract Task<object> Get(object key);
|
|
|
|
public Type GetKeyType()
|
|
{
|
|
return typeof(KEY);
|
|
}
|
|
|
|
public Type GetValueType()
|
|
{
|
|
return typeof(VALUE);
|
|
}
|
|
|
|
public virtual void Invalidate(object key)
|
|
{
|
|
}
|
|
|
|
public virtual void Invalidate(object key, object replacement)
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
}
|