ComplianceServer/oldcode/ZXDService/EventService.svc.cs

24 lines
855 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using CRM.Core.BLL.EventBus.EventHandlers;
using CRM.Core.Common.EventBus;
using ZXDService.Services;
namespace ZXDService
{
// 注意: 使用“重构”菜单上的“重命名”命令可以同时更改代码、svc 和配置文件中的类名“EventService”。
// 注意: 为了启动 WCF 测试客户端以测试此服务,请在解决方案资源管理器中选择 EventService.svc 或 EventService.svc.cs然后开始调试。
public class EventService : IEventService
{
private readonly UserCenterEventServices _usercenterEvent = new UserCenterEventServices();
public EventService()
{
EventBus.Instance.Subscribe(new UserCenterEventEventHandler());
}
public string GetEvent()
{
_usercenterEvent.Load();
return "ok";
}
}
}