Browse Source

refactor.

master
yangxiaodong 7 years ago
parent
commit
d48c2d4f05
4 changed files with 9 additions and 8 deletions
  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 View File

@@ -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")]


+ 1
- 1
src/DotNetCore.CAP/Infrastructure/Helper.cs View File

@@ -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)


+ 5
- 1
src/DotNetCore.CAP/Infrastructure/WebHookProvider.cs View File

@@ -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();
}
} }
} }

+ 2
- 3
src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs View File

@@ -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()


Loading…
Cancel
Save