瀏覽代碼

refactor.

master
yangxiaodong 7 年之前
父節點
當前提交
d48c2d4f05
共有 4 個文件被更改,包括 9 次插入8 次删除
  1. +1
    -3
      samples/Sample.Kafka/Controllers/ValuesController.cs
  2. +1
    -1
      src/DotNetCore.CAP/Infrastructure/Helper.cs
  3. +5
    -1
      src/DotNetCore.CAP/Infrastructure/WebHookProvider.cs
  4. +2
    -3
      src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs

+ 1
- 3
samples/Sample.Kafka/Controllers/ValuesController.cs 查看文件

@@ -29,9 +29,7 @@ namespace Sample.Kafka.Controllers
[CapSubscribe("zzwl.topic.finace.callBack", Group = "test")]
public void KafkaTest(Person person)
{
Console.WriteLine(person.Name);
Console.WriteLine(person.Age);

Console.WriteLine(DateTime.Now);
}

[Route("~/send")]


+ 1
- 1
src/DotNetCore.CAP/Infrastructure/Helper.cs 查看文件

@@ -6,7 +6,7 @@ namespace DotNetCore.CAP.Infrastructure
{
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;

public static void SetSerializerSettings(JsonSerializerSettings setting)


+ 5
- 1
src/DotNetCore.CAP/Infrastructure/WebHookProvider.cs 查看文件

@@ -4,7 +4,11 @@ using System.Text;

namespace DotNetCore.CAP.Infrastructure
{
class WebHookProvider
public class WebHookProvider
{
public WebHookProvider()
{
throw new NotImplementedException();
}
}
}

+ 2
- 3
src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs 查看文件

@@ -59,10 +59,9 @@ namespace DotNetCore.CAP.Processor
return;
}

_logger.LogTrace("Pulsing the JobQueuer.");
_logger.LogTrace("Pulsing the Queuer.");

PublishQueuer.PulseEvent.Set();
SubscribeQueuer.PulseEvent.Set();
PublishQueuer.PulseEvent.Set();
}

public void Dispose()


Loading…
取消
儲存