исправлен колбэк
This commit is contained in:
+44
-44
@@ -1,50 +1,50 @@
|
|||||||
using System.Diagnostics;
|
// using System.Diagnostics;
|
||||||
using System.Reflection;
|
// using System.Reflection;
|
||||||
using mROA.Implementation;
|
// using mROA.Implementation;
|
||||||
using mROA.Test;
|
// using mROA.Test;
|
||||||
|
//
|
||||||
namespace mROA.Performance;
|
// namespace mROA.Performance;
|
||||||
|
//
|
||||||
class Program
|
// class Program
|
||||||
{
|
// {
|
||||||
private static ProgramlyInteractionChanel _interactionModule;
|
// private static ProgramlyInteractionChanel _interactionModule;
|
||||||
private static ISerialisationModule _serialisationModule;
|
// private static ISerialisationModule _serialisationModule;
|
||||||
private static IExecuteModule _executeModule;
|
// private static IExecuteModule _executeModule;
|
||||||
private static IMethodRepository _methodRepository;
|
// private static IMethodRepository _methodRepository;
|
||||||
private static IContextRepository _contextRepository;
|
// private static IContextRepository _contextRepository;
|
||||||
|
//
|
||||||
static void Main(string[] args)
|
// static void Main(string[] args)
|
||||||
{
|
// {
|
||||||
_interactionModule = new ProgramlyInteractionChanel();
|
// _interactionModule = new ProgramlyInteractionChanel();
|
||||||
_serialisationModule = new JsonSerialisationModule(_interactionModule);
|
// _serialisationModule = new JsonSerialisationModule(_interactionModule);
|
||||||
var repo = new MethodRepository();
|
// var repo = new MethodRepository();
|
||||||
repo.CollectForAssembly(Assembly.GetAssembly(typeof(ITestController)));
|
// repo.CollectForAssembly(Assembly.GetAssembly(typeof(ITestController)));
|
||||||
_methodRepository = repo;
|
// _methodRepository = repo;
|
||||||
var repo2 = new ContextRepository();
|
// var repo2 = new ContextRepository();
|
||||||
repo2.FillSingletons(Assembly.GetAssembly(typeof(ITestController)));
|
// repo2.FillSingletons(Assembly.GetAssembly(typeof(ITestController)));
|
||||||
_contextRepository = repo2;
|
// _contextRepository = repo2;
|
||||||
|
//
|
||||||
_executeModule = new PrepairedExecutionModule(_methodRepository, _serialisationModule, _contextRepository);
|
// _executeModule = new PrepairedExecutionModule(_methodRepository, _serialisationModule, _contextRepository);
|
||||||
var sw = Stopwatch.StartNew();
|
// var sw = Stopwatch.StartNew();
|
||||||
|
//
|
||||||
_interactionModule.PassCommand(132, """
|
|
||||||
{
|
|
||||||
"RequestTypeId": 0,
|
|
||||||
"CommandId": 3
|
|
||||||
}
|
|
||||||
""");
|
|
||||||
while (_interactionModule.OutputBuffer.Count != 2) ;
|
|
||||||
|
|
||||||
|
|
||||||
// _interactionModule.PassCommand(132, """
|
// _interactionModule.PassCommand(132, """
|
||||||
// {
|
// {
|
||||||
// "RequestTypeId": 0,
|
// "RequestTypeId": 0,
|
||||||
// "CommandId": 3
|
// "CommandId": 3
|
||||||
// }
|
// }
|
||||||
// """);
|
// """);
|
||||||
// while (_interactionModule.OutputBuffer.Count() != 4) ;
|
// while (_interactionModule.OutputBuffer.Count != 2) ;
|
||||||
|
//
|
||||||
var time = sw.Elapsed;
|
//
|
||||||
Console.WriteLine(time.TotalMilliseconds.ToString());
|
// // _interactionModule.PassCommand(132, """
|
||||||
}
|
// // {
|
||||||
}
|
// // "RequestTypeId": 0,
|
||||||
|
// // "CommandId": 3
|
||||||
|
// // }
|
||||||
|
// // """);
|
||||||
|
// // while (_interactionModule.OutputBuffer.Count() != 4) ;
|
||||||
|
//
|
||||||
|
// var time = sw.Elapsed;
|
||||||
|
// Console.WriteLine(time.TotalMilliseconds.ToString());
|
||||||
|
// }
|
||||||
|
// }
|
||||||
@@ -5,12 +5,12 @@
|
|||||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Mimm\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Mikhail\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.0</NuGetToolVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<SourceRoot Include="C:\Users\Mimm\.nuget\packages\" />
|
<SourceRoot Include="C:\Users\Mikhail\.nuget\packages\" />
|
||||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -5,12 +5,12 @@
|
|||||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Mimm\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Mikhail\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.0</NuGetToolVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<SourceRoot Include="C:\Users\Mimm\.nuget\packages\" />
|
<SourceRoot Include="C:\Users\Mikhail\.nuget\packages\" />
|
||||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
@@ -21,6 +21,6 @@
|
|||||||
<Import Project="$(NuGetPackageRoot)microsoft.net.test.sdk\17.12.0\build\netcoreapp3.1\Microsoft.NET.Test.Sdk.props" Condition="Exists('$(NuGetPackageRoot)microsoft.net.test.sdk\17.12.0\build\netcoreapp3.1\Microsoft.NET.Test.Sdk.props')" />
|
<Import Project="$(NuGetPackageRoot)microsoft.net.test.sdk\17.12.0\build\netcoreapp3.1\Microsoft.NET.Test.Sdk.props" Condition="Exists('$(NuGetPackageRoot)microsoft.net.test.sdk\17.12.0\build\netcoreapp3.1\Microsoft.NET.Test.Sdk.props')" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<PkgNUnit_Analyzers Condition=" '$(PkgNUnit_Analyzers)' == '' ">C:\Users\Mimm\.nuget\packages\nunit.analyzers\4.6.0</PkgNUnit_Analyzers>
|
<PkgNUnit_Analyzers Condition=" '$(PkgNUnit_Analyzers)' == '' ">C:\Users\Mikhail\.nuget\packages\nunit.analyzers\4.6.0</PkgNUnit_Analyzers>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -101,7 +101,7 @@ public class PrepairedExecutionModule : IExecuteModule
|
|||||||
_serialisationModule.PostResponse(new FinalCommandExecution
|
_serialisationModule.PostResponse(new FinalCommandExecution
|
||||||
{
|
{
|
||||||
ExecutionId = request.ExecutionId,
|
ExecutionId = request.ExecutionId,
|
||||||
Result = request,
|
Result = result,
|
||||||
CommandId = request.CommandId,
|
CommandId = request.CommandId,
|
||||||
ClientId = request.ClientId
|
ClientId = request.ClientId
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Mimm\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Mikhail\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.0</NuGetToolVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<SourceRoot Include="C:\Users\Mimm\.nuget\packages\" />
|
<SourceRoot Include="C:\Users\Mikhail\.nuget\packages\" />
|
||||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user