public WeChatLogger(IWeChatContext context, LogLevel minLevel = LogLevel.Information) : base("WeChat", minLevel) { if (context == null) { throw new ArgumentNullException(nameof(context)); } Context = context; }
protected WeChatModule(IWeChatContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } Context = context; }
protected WeChatModule(IWeChatContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } Context = context; Dispatcher = Context.GetSerivce <IActorDispatcher>(); }
public void SetContext(IWeChatContext context) { if (context == Context) { return; } Context = context; HttpService = context.GetSerivce <IHttpService>(); Logger = context.GetSerivce <ILogger>(); Session = context.GetModule <SessionModule>(); Store = context.GetModule <StoreModule>(); Account = context.GetModule <AccountModule>(); Config = context.GetSerivce <IConfigurationRoot>(); }
public WebLoginAction(IWeChatContext context, ActionEventListener listener = null) : base(context, listener) { }
public GetTuringRobotReplyAction(IWeChatContext context, string input, ActionEventListener listener = null) : base(context, listener) { _input = input; _key = Config["TulingApiKey"]; }
public ChatModule(IWeChatContext context) : base(context) { }
public WeChatActionFactory(IWeChatContext context) { Context = context; }
public SendMsgAction(IWeChatContext context, MessageSent msg, ActionEventListener listener = null) : base(context, listener) { _msg = msg; }
public WebwxSyncAction(IWeChatContext context, ActionEventListener listener = null) : base(context, listener) { }
public SyncCheckAction(IWeChatContext context, ActionEventListener listener = null) : base(context, listener) { }
protected WeChatModule(IWeChatContext context) { if (context == null) throw new ArgumentNullException(nameof(context)); Context = context; }
public SessionModule(IWeChatContext context) : base(context) { }
protected WeChatModule(IWeChatContext context) { Context = context ?? throw new ArgumentNullException(nameof(context)); }
public StoreModule(IWeChatContext context) : base(context) { }
public BatchGetContactAction(IWeChatContext context, ActionEventListener listener = null) : base(context, listener) { }
protected WebWeChatAction(IWeChatContext context, ActionEventListener listener = null) : base(context.GetSerivce<IHttpService>()) { _context = context; OnActionEvent += listener; }
public GetQRCodeAction(IWeChatContext context, ActionEventListener listener = null) : base(context, listener) { }
public AccountModule(IWeChatContext context) : base(context) { }
public GetUuidAction(IWeChatContext context, ActionEventListener listener = null) : base(context, listener) { Session.Seq = Timestamp; }
public LoginModule(IWeChatContext context) : base(context) { }
public WeChatLogger(IWeChatContext context, LogLevel minLevel = LogLevel.Information) : base("WeChat", minLevel) { if (context == null) throw new ArgumentNullException(nameof(context)); Context = context; }
public ContactModule(IWeChatContext context) : base(context) { }
public WebWeChatActionFuture(IWeChatContext context, ActionEventListener listener = null) : base(listener) { ActionFactory = context.GetSerivce <IWeChatActionFactory>(); }
public StatusNotifyAction(IWeChatContext context, ActionEventListener listener = null) : base(context, listener) { }
public WeChatConsoleLogger(IWeChatContext context, LogLevel minLevel = LogLevel.Information) : base("WeChat", minLevel) { Context = context; }
public WatiForLoginAction(IWeChatContext context, ActionEventListener listener = null) : base(context, listener) { }
protected WebWeChatAction(IWeChatContext context, ActionEventListener listener = null) : base(context.GetSerivce <IHttpService>()) { _context = context; OnActionEvent += listener; }