コード例 #1
0
ファイル: NetDistributer.cs プロジェクト: firefishes/ShipDock
        public void SendRequest(string keyInURLManager, JsonData jsonParam, string headerAPI = "", bool showWaiting = false)
        {
            IHttpRequester requester = mHttpReqeuesters[keyInURLManager];

            if (requester is IRequesterJsonParamer jsonParamRequest)
            {
                jsonParamRequest.ShowWaiting  = showWaiting;
                jsonParamRequest.RequestParam = jsonParam;

                requester.ResponserIniter.IgnoreParamCreate = true;

                requester.HeaderAPIKey = headerAPI;
                requester.Build();
                requester.Send();

                requester.ResponserIniter.IgnoreParamCreate = false;
            }
            else
            {
            }
        }
コード例 #2
0
ファイル: NetDistributer.cs プロジェクト: firefishes/ShipDock
        public void SendRequest(string keyInURLManager, bool showWaiting = false)
        {
            IHttpRequester requester = mHttpReqeuesters[keyInURLManager];

            if (requester != default)
            {
                if (requester is IRequesterJsonParamer jsonParamRequest)
                {
                    jsonParamRequest.ShowWaiting = showWaiting;
                }
                else
                {
                }

                requester.Build();
                requester.Send();
            }
            else
            {
            }
        }