Commit d48c2d4f authored by yangxiaodong's avatar yangxiaodong

refactor.

parent e2c7d7fd
...@@ -29,9 +29,7 @@ namespace Sample.Kafka.Controllers ...@@ -29,9 +29,7 @@ namespace Sample.Kafka.Controllers
[CapSubscribe("zzwl.topic.finace.callBack", Group = "test")] [CapSubscribe("zzwl.topic.finace.callBack", Group = "test")]
public void KafkaTest(Person person) public void KafkaTest(Person person)
{ {
Console.WriteLine(person.Name); Console.WriteLine(DateTime.Now);
Console.WriteLine(person.Age);
} }
[Route("~/send")] [Route("~/send")]
......
...@@ -6,7 +6,7 @@ namespace DotNetCore.CAP.Infrastructure ...@@ -6,7 +6,7 @@ namespace DotNetCore.CAP.Infrastructure
{ {
public static class Helper public static class Helper
{ {
private static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); private static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Local);
private static JsonSerializerSettings _serializerSettings; private static JsonSerializerSettings _serializerSettings;
public static void SetSerializerSettings(JsonSerializerSettings setting) public static void SetSerializerSettings(JsonSerializerSettings setting)
......
...@@ -4,7 +4,11 @@ using System.Text; ...@@ -4,7 +4,11 @@ using System.Text;
namespace DotNetCore.CAP.Infrastructure namespace DotNetCore.CAP.Infrastructure
{ {
class WebHookProvider public class WebHookProvider
{ {
public WebHookProvider()
{
throw new NotImplementedException();
}
} }
} }
...@@ -59,10 +59,9 @@ namespace DotNetCore.CAP.Processor ...@@ -59,10 +59,9 @@ namespace DotNetCore.CAP.Processor
return; return;
} }
_logger.LogTrace("Pulsing the JobQueuer."); _logger.LogTrace("Pulsing the Queuer.");
PublishQueuer.PulseEvent.Set(); PublishQueuer.PulseEvent.Set();
SubscribeQueuer.PulseEvent.Set();
} }
public void Dispose() public void Dispose()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment