You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using log4net;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.EventProcessor
|
|
|
|
|
{
|
|
|
|
|
public class ProcessorTest : EventProcessor
|
|
|
|
|
{
|
|
|
|
|
private static ILog logger = LogManager.GetLogger("ProcessorTest");
|
|
|
|
|
|
|
|
|
|
public override bool CanProcess(string type)
|
|
|
|
|
{
|
|
|
|
|
if (type == "test")
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Process(JObject paraObj)
|
|
|
|
|
{
|
|
|
|
|
logger.Debug($"已处理消息:{JsonConvert.SerializeObject(paraObj)}");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|