private QQNotifyEvent(QQNotifyEventType type, object target = null) { Type = type; Target = target; }
public static QQNotifyEvent CreateEvent(QQNotifyEventType type, object target = null) { return(target == null?EmptyEvents.GetOrAdd(type, key => new QQNotifyEvent(key)) : new QQNotifyEvent(type, target)); }
public QQNotifyEvent(QQNotifyEventType type, object target) { Type = type; Target = target; }
public QQNotifyEvent(QQNotifyEventType type) : this(type, null) { }
public static Task FireNotifyAsync(this IQQContext context, QQNotifyEventType type, object target = null) { return(context.FireNotifyAsync(QQNotifyEvent.CreateEvent(type, target))); }
public static QQNotifyEvent CreateEvent(QQNotifyEventType type, object target = null) { return target == null ? EmptyEvents.GetOrAdd(type, key => new QQNotifyEvent(key)) : new QQNotifyEvent(type, target); }