public void SendRequest()
        {
            var toSendData = _toSendDataBinders.Select(b => BinderUtil.GetValueFromBinder(b));

            if (!_async)
            {
                var res = PresenterDispatcher.GetInstance().RequestWithMTokens(_url, toSendData.ToArray());
                OnResponse(res);
            }
            else
            {
                PresenterDispatcher.GetInstance().RequestWithMTokensAsync(this, OnResponse, _url, toSendData.ToArray());
            }
        }
 public void Broadcast(int index, bool needReceiver = false)
 {
     PresenterDispatcher.GetInstance().BroadcastEvent(Url, new object[] { }, c => ((MFloat)c).Value == index, needReceiver);
 }
 public void Broadcast(string id, bool needReceiver = false)
 {
     PresenterDispatcher.GetInstance().BroadcastEvent(Url, new object[] { }, c => ((MString)c).Value == id, needReceiver);
 }
 public void RegistEvent()
 {
     PresenterDispatcher.GetInstance().RegistPresenterEvent(_url, this);
 }