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.
44 lines
942 B
C#
44 lines
942 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace JwKdsV.Core.MessageEvent
|
|
{
|
|
/// <summary>
|
|
/// 消息订阅者封装类
|
|
/// </summary>
|
|
public class MsgReceiver
|
|
{
|
|
private object _receiver = null;
|
|
private bool isOnce = false;
|
|
private string key = string.Empty;
|
|
public EventHandler<MsgEventArgs> appEventHandler;
|
|
|
|
/// <summary>
|
|
/// 接收者对象
|
|
/// </summary>
|
|
public object ReceiverObj
|
|
{
|
|
get { return _receiver; }
|
|
set { _receiver = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否只接收一次操作
|
|
/// </summary>
|
|
public bool IsOnce
|
|
{
|
|
get { return isOnce; }
|
|
set { isOnce = value; }
|
|
}
|
|
|
|
public string Key
|
|
{
|
|
get { return key; }
|
|
set { key = value; }
|
|
}
|
|
|
|
}
|
|
}
|