@@ -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(person.Age); | |||||
Console.WriteLine(DateTime.Now); | |||||
} | } | ||||
[Route("~/send")] | [Route("~/send")] | ||||
@@ -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; | |||||
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 | |||||
return; | return; | ||||
} | } | ||||
_logger.LogTrace("Pulsing the JobQueuer."); | |||||
_logger.LogTrace("Pulsing the Queuer."); | |||||
PublishQueuer.PulseEvent.Set(); | |||||
SubscribeQueuer.PulseEvent.Set(); | |||||
PublishQueuer.PulseEvent.Set(); | |||||
} | } | ||||
public void Dispose() | public void Dispose() | ||||