1
0
mirror of https://github.com/bitwarden/server synced 2025-12-13 14:53:34 +00:00
Files
server/util/Seeder/IQuery.cs
Matt Gibson 878b78b51e Stricter scene and query types
SeederAPI only serves Scenes, Recipes are inteded to be used locally only.
2025-10-29 12:27:15 -07:00

16 lines
386 B
C#

namespace Bit.Seeder;
public interface IQuery
{
Type GetRequestType();
object Execute(object request);
}
public interface IQuery<TRequest, TResult> : IQuery where TRequest : class where TResult : class
{
TResult Execute(TRequest request);
Type IQuery.GetRequestType() => typeof(TRequest);
object IQuery.Execute(object request) => Execute((TRequest)request);
}