тесты производительности

This commit is contained in:
2025-01-12 22:44:52 +03:00
parent 1a55131cb3
commit da60eb27f9
5 changed files with 39 additions and 452 deletions
+27 -24
View File
@@ -2,33 +2,36 @@
public interface ICallRequest
{
int RequestTypeId { get; }
int CommandId { get; set; }
int ClientId { get; set; }
int CommandId { get; }
int ClientId { get; }
public int ObjectId { get; }
public object Parameter { get; }
}
public class SingletonCallRequest : ICallRequest
{
public virtual int RequestTypeId => (int)RequestType.Singleton;
public int CommandId { get; set; }
public int ClientId { get; set; }
}
public class CallRequest : SingletonCallRequest
public struct HardCallRequest : ICallRequest
{
public override int RequestTypeId => (int)RequestType.NonParametrized;
public int ObjectId { get; set; }
}
public class ParametrizedCallRequest : CallRequest
{
public override int RequestTypeId => (int)RequestType.Parametrized;
public int CommandId => Command;
public int ClientId => Client;
public int ObjectId => Object;
public int Command;
public int Client;
public int Object;
public object Parameter { get; set; }
}
enum RequestType
{
Singleton,
NonParametrized,
Parametrized
}
}
// public class CallRequest : SingletonCallRequest
// {
// public override int RequestTypeId => (int)RequestType.NonParametrized;
// public int ObjectId { get; set; }
// }
//
// public class ParametrizedCallRequest : CallRequest
// {
// public override int RequestTypeId => (int)RequestType.Parametrized;
// public object Parameter { get; set; }
// }