示例#1
0
 private QQNotifyEvent(QQNotifyEventType type, object target = null)
 {
     Type   = type;
     Target = target;
 }
示例#2
0
 public static QQNotifyEvent CreateEvent(QQNotifyEventType type, object target = null)
 {
     return(target == null?EmptyEvents.GetOrAdd(type, key => new QQNotifyEvent(key)) : new QQNotifyEvent(type, target));
 }
示例#3
0
 public QQNotifyEvent(QQNotifyEventType type, object target)
 {
     Type   = type;
     Target = target;
 }
示例#4
0
 public QQNotifyEvent(QQNotifyEventType type) : this(type, null)
 {
 }
示例#5
0
 public static Task FireNotifyAsync(this IQQContext context, QQNotifyEventType type, object target = null)
 {
     return(context.FireNotifyAsync(QQNotifyEvent.CreateEvent(type, target)));
 }
示例#6
0
 public static QQNotifyEvent CreateEvent(QQNotifyEventType type, object target = null)
 {
     return target == null ? EmptyEvents.GetOrAdd(type, key => new QQNotifyEvent(key)) : new QQNotifyEvent(type, target);
 }
示例#7
0
 private QQNotifyEvent(QQNotifyEventType type, object target = null)
 {
     Type = type;
     Target = target;
 }