mirror of
https://github.com/bitwarden/server
synced 2025-12-13 14:53:34 +00:00
16 lines
386 B
C#
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);
|
|
}
|