mirror of
https://github.com/bitwarden/server
synced 2025-12-14 15:23:42 +00:00
16 lines
351 B
C#
16 lines
351 B
C#
namespace Bit.Seeder;
|
|
|
|
public interface IQuery
|
|
{
|
|
Type GetRequestType();
|
|
object Execute(object request);
|
|
}
|
|
|
|
public interface IQuery<TRequest> : IQuery where TRequest : class
|
|
{
|
|
object Execute(TRequest request);
|
|
|
|
Type IQuery.GetRequestType() => typeof(TRequest);
|
|
object IQuery.Execute(object request) => Execute((TRequest)request);
|
|
}
|