Example #1
0
 public static WeChatNotifyEvent CreateEvent(WeChatNotifyEventType type, object target = null)
 {
     return(target == null?EmptyEvents.GetOrAdd(type, key => new WeChatNotifyEvent(key)) : new WeChatNotifyEvent(type, target));
 }
 public static WeChatNotifyEvent CreateEvent(WeChatNotifyEventType type, object target = null)
 {
     return target == null ? EmptyEvents.GetOrAdd(type, key => new WeChatNotifyEvent(key)) : new WeChatNotifyEvent(type, target);
 }
Example #3
0
 private WeChatNotifyEvent(WeChatNotifyEventType type, object target = null)
 {
     Type   = type;
     Target = target;
 }
 private WeChatNotifyEvent(WeChatNotifyEventType type, object target = null)
 {
     Type = type;
     Target = target;
 }