freeso/TSOClient/FSO.Server.DataService/Framework/AbstractDataServiceProvider.cs
riperiperi b57ebbd141 Cleanup: Remove most unused usings and MPL per-file licenses
MPL per-file was used in older project files, but should apply to the whole project, so having it there was redundant.
2023-11-25 03:45:29 +00:00

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)
{
}
}
}