diff --git a/DotXxlJob.sln b/DotXxlJob.sln
index dee34fe..9fe021a 100644
--- a/DotXxlJob.sln
+++ b/DotXxlJob.sln
@@ -5,21 +5,17 @@ VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{97756BA5-1E7C-4536-A49E-AE2190C0E6A5}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotXxlJob.Core", "src\DotXxlJob.Core\DotXxlJob.Core.csproj", "{FFFEEA78-CB09-4BFB-89B7-E9A46EC3ED65}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hessian.NET", "src\Hessian.NET\Hessian.NET.csproj", "{86456232-19D5-48DD-AC39-A0526517E0AD}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotXxlJob.Core", "src\DotXxlJob.Core\DotXxlJob.Core.csproj", "{FFFEEA78-CB09-4BFB-89B7-E9A46EC3ED65}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{352EC932-F112-4A2F-9DC3-F0761C85E068}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hessian.NET.Tests", "tests\Hessian.NET.Tests\Hessian.NET.Tests.csproj", "{187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}"
-EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{E959F9B5-F3EB-48B1-B842-2CDDFDB01900}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ASPNetCoreExecutor", "samples\ASPNetCoreExecutor\ASPNetCoreExecutor.csproj", "{DC9E5AF3-18FF-4713-BDB4-672E47ADA4E5}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ASPNetCoreExecutor", "samples\ASPNetCoreExecutor\ASPNetCoreExecutor.csproj", "{DC9E5AF3-18FF-4713-BDB4-672E47ADA4E5}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HessianReader", "samples\HessianReader\HessianReader.csproj", "{F822B528-95FD-40B4-9EE0-3AE8878075AC}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HessianReader", "samples\HessianReader\HessianReader.csproj", "{F822B528-95FD-40B4-9EE0-3AE8878075AC}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hessian", "src\Hessian\Hessian.csproj", "{BD9B8108-6528-430F-AD28-6F8434A29F55}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hessian", "src\Hessian\Hessian.csproj", "{BD9B8108-6528-430F-AD28-6F8434A29F55}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -30,17 +26,6 @@ Global
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {FFFEEA78-CB09-4BFB-89B7-E9A46EC3ED65} = {97756BA5-1E7C-4536-A49E-AE2190C0E6A5}
- {86456232-19D5-48DD-AC39-A0526517E0AD} = {97756BA5-1E7C-4536-A49E-AE2190C0E6A5}
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9} = {352EC932-F112-4A2F-9DC3-F0761C85E068}
- {DC9E5AF3-18FF-4713-BDB4-672E47ADA4E5} = {E959F9B5-F3EB-48B1-B842-2CDDFDB01900}
- {F822B528-95FD-40B4-9EE0-3AE8878075AC} = {E959F9B5-F3EB-48B1-B842-2CDDFDB01900}
- {BD9B8108-6528-430F-AD28-6F8434A29F55} = {97756BA5-1E7C-4536-A49E-AE2190C0E6A5}
- EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FFFEEA78-CB09-4BFB-89B7-E9A46EC3ED65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FFFEEA78-CB09-4BFB-89B7-E9A46EC3ED65}.Debug|Any CPU.Build.0 = Debug|Any CPU
@@ -54,30 +39,6 @@ Global
{FFFEEA78-CB09-4BFB-89B7-E9A46EC3ED65}.Release|x64.Build.0 = Release|Any CPU
{FFFEEA78-CB09-4BFB-89B7-E9A46EC3ED65}.Release|x86.ActiveCfg = Release|Any CPU
{FFFEEA78-CB09-4BFB-89B7-E9A46EC3ED65}.Release|x86.Build.0 = Release|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Debug|x64.ActiveCfg = Debug|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Debug|x64.Build.0 = Debug|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Debug|x86.ActiveCfg = Debug|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Debug|x86.Build.0 = Debug|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Release|Any CPU.Build.0 = Release|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Release|x64.ActiveCfg = Release|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Release|x64.Build.0 = Release|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Release|x86.ActiveCfg = Release|Any CPU
- {86456232-19D5-48DD-AC39-A0526517E0AD}.Release|x86.Build.0 = Release|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Debug|x64.ActiveCfg = Debug|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Debug|x64.Build.0 = Debug|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Debug|x86.ActiveCfg = Debug|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Debug|x86.Build.0 = Debug|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Release|Any CPU.Build.0 = Release|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Release|x64.ActiveCfg = Release|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Release|x64.Build.0 = Release|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Release|x86.ActiveCfg = Release|Any CPU
- {187B28C7-C3D7-4E0A-A84B-98B7C1C758F9}.Release|x86.Build.0 = Release|Any CPU
{DC9E5AF3-18FF-4713-BDB4-672E47ADA4E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC9E5AF3-18FF-4713-BDB4-672E47ADA4E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DC9E5AF3-18FF-4713-BDB4-672E47ADA4E5}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -115,4 +76,16 @@ Global
{BD9B8108-6528-430F-AD28-6F8434A29F55}.Release|x86.ActiveCfg = Release|Any CPU
{BD9B8108-6528-430F-AD28-6F8434A29F55}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {FFFEEA78-CB09-4BFB-89B7-E9A46EC3ED65} = {97756BA5-1E7C-4536-A49E-AE2190C0E6A5}
+ {DC9E5AF3-18FF-4713-BDB4-672E47ADA4E5} = {E959F9B5-F3EB-48B1-B842-2CDDFDB01900}
+ {F822B528-95FD-40B4-9EE0-3AE8878075AC} = {E959F9B5-F3EB-48B1-B842-2CDDFDB01900}
+ {BD9B8108-6528-430F-AD28-6F8434A29F55} = {97756BA5-1E7C-4536-A49E-AE2190C0E6A5}
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {F4A8B63E-6284-4D00-9719-BAB1D955DACF}
+ EndGlobalSection
EndGlobal
diff --git a/samples/ASPNetCoreExecutor/1547621183.dat b/samples/ASPNetCoreExecutor/1547621183.dat
deleted file mode 100644
index d8c48ad..0000000
Binary files a/samples/ASPNetCoreExecutor/1547621183.dat and /dev/null differ
diff --git a/samples/ASPNetCoreExecutor/ASPNetCoreExecutor.csproj b/samples/ASPNetCoreExecutor/ASPNetCoreExecutor.csproj
index 181e783..99a0127 100644
--- a/samples/ASPNetCoreExecutor/ASPNetCoreExecutor.csproj
+++ b/samples/ASPNetCoreExecutor/ASPNetCoreExecutor.csproj
@@ -1,8 +1,7 @@
- netcoreapp2.2
- InProcess
+ netcoreapp2.2
@@ -13,4 +12,8 @@
+
+ <_ContentIncludedByDefault Remove="Properties\launchSettings.json" />
+
+
diff --git a/samples/ASPNetCoreExecutor/Properties/launchSettings.json b/samples/ASPNetCoreExecutor/Properties/launchSettings.json
deleted file mode 100644
index 663adfb..0000000
--- a/samples/ASPNetCoreExecutor/Properties/launchSettings.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "iisSettings": {
- "windowsAuthentication": false,
- "anonymousAuthentication": true,
- "iisExpress": {
- "applicationUrl": "http://localhost:22613",
- "sslPort": 44333
- }
- },
- "profiles": {
- "IIS Express": {
- "commandName": "IISExpress",
- "launchBrowser": true,
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- }
- },
- "ASPNetCoreExecutor": {
- "commandName": "Project",
- "launchBrowser": true,
- "applicationUrl": "https://localhost:5001;http://localhost:5000",
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/samples/ASPNetCoreExecutor/XxlJobExecutorMiddleware.cs b/samples/ASPNetCoreExecutor/XxlJobExecutorMiddleware.cs
index 882891f..8c4c527 100644
--- a/samples/ASPNetCoreExecutor/XxlJobExecutorMiddleware.cs
+++ b/samples/ASPNetCoreExecutor/XxlJobExecutorMiddleware.cs
@@ -1,4 +1,5 @@
using System;
+using System.IO;
using System.Net;
using System.Threading.Tasks;
using DotXxlJob.Core;
@@ -28,11 +29,21 @@ namespace ASPNetCoreExecutor
if ("POST".Equals(context.Request.Method, StringComparison.OrdinalIgnoreCase) &&
"application/octet-stream".Equals(context.Request.ContentType, StringComparison.OrdinalIgnoreCase))
{
+ /*
+ using (Stream file = File.Create("./"+DateTime.Now.ToUnixTimeSeconds()+".data"))
+ {
+ context.Request.Body.CopyTo(file);
+ }
+
+ return;
+ */
+
var rsp = await _rpcService.HandlerAsync(context.Request.Body);
context.Response.StatusCode = (int) HttpStatusCode.OK;
context.Response.ContentType = "text/plain;utf-8";
await context.Response.Body.WriteAsync(rsp,0,rsp.Length);
+ return;
}
await _next.Invoke(context);
diff --git a/samples/HessianReader/1547620263.dat b/samples/HessianReader/1547620263.dat
deleted file mode 100644
index 3f69aab..0000000
Binary files a/samples/HessianReader/1547620263.dat and /dev/null differ
diff --git a/samples/HessianReader/1547621183.dat b/samples/HessianReader/1547621183.dat
deleted file mode 100644
index d8c48ad..0000000
Binary files a/samples/HessianReader/1547621183.dat and /dev/null differ
diff --git a/samples/HessianReader/HessianReader.csproj b/samples/HessianReader/HessianReader.csproj
index 5f6fbcb..37178a2 100644
--- a/samples/HessianReader/HessianReader.csproj
+++ b/samples/HessianReader/HessianReader.csproj
@@ -6,21 +6,16 @@
-
-
+
-
- C:\Program Files\dotnet\sdk\NuGetFallbackFolder\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll
-
+
+
-
- PreserveNewest
-
-
+
PreserveNewest
diff --git a/samples/HessianReader/Program.cs b/samples/HessianReader/Program.cs
index ebade53..f41dbd6 100644
--- a/samples/HessianReader/Program.cs
+++ b/samples/HessianReader/Program.cs
@@ -1,8 +1,9 @@
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.IO;
+using DotXxlJob.Core;
using DotXxlJob.Core.Model;
-using Hessian.Net;
+using Hessian;
using Newtonsoft.Json;
namespace HessianReader
@@ -11,7 +12,7 @@ namespace HessianReader
{
static void Main(string[] args)
{
- byte[] myBinary = File.ReadAllBytes("1547621183.dat");
+ byte[] myBinary = File.ReadAllBytes("log.dat");
foreach (var i in myBinary)
{
@@ -21,39 +22,32 @@ namespace HessianReader
}
Console.WriteLine(Environment.NewLine);
- Console.WriteLine("---------------------------------------------------------------");
+ Console.WriteLine("---------------------{0}------------------------------------------",myBinary.Length);
+
- var serializer = new DataContractHessianSerializer(typeof (RpcRequest));
-
using (var stream1 = new MemoryStream(myBinary))
{
-
- var s = new Hessian.Deserializer(stream1);
- var a = s.ReadValue();
- Console.WriteLine(a);
- a = s.ReadValue();
- Console.WriteLine(a);
- Console.WriteLine(JsonConvert.SerializeObject(a));
- a = s.ReadValue();
- Console.WriteLine(a);
- Console.WriteLine(JsonConvert.SerializeObject(a));
- a = s.ReadValue();
- Console.WriteLine(a);
- Console.WriteLine(JsonConvert.SerializeObject(a));
+ var s1 = HessianSerializer.DeserializeRequest(stream1);
+ Console.WriteLine(JsonConvert.SerializeObject(s1));
}
+
+ Console.WriteLine("------------------------------------------------------------");
+ Console.ReadKey();
- return;
+ /**
+ *
+ * Console.WriteLine("---------------------------------------------------------------");
RpcRequest req = new RpcRequest {
RequestId = "71565f61-94e8-4dcf-9760-f2fb73a6886a",
CreateMillisTime = 1547621183585,
AccessToken = "",
ClassName = "com.xxl.job.core.biz.ExecutorBiz",
MethodName = "run",
- ParameterTypes = new HessianArrayList {"class com.xxl.job.core.biz.model.TriggerParam"},
- Version = "null",
- Parameters = new HessianArrayList()
+ ParameterTypes = new List