Пример #1
0
        public static void Send_CrossRefFileEpisode(CrossRef_File_Episode data)
        {
            if (!ServerSettings.Instance.WebCache.XRefFileEpisode_Send)
            {
                return;
            }

            string uri = $@"http://{azureHostBaseAddress}/api/CrossRef_File_Episode";

            Azure_CrossRef_File_Episode_Request input = data.ToRequest();
            string json = JSONHelper.Serialize(input);

            SendData(uri, json, "POST");
        }
Пример #2
0
        public static void Send_CrossRefFileEpisode(CrossRef_File_Episode data)
        {
            if (!ServerSettings.WebCache_XRefFileEpisode_Send)
            {
                return;
            }

            string uri = string.Format(@"http://{0}/api/CrossRef_File_Episode", azureHostBaseAddress);

            Azure_CrossRef_File_Episode_Request input = data.ToRequest();
            string json = JSONHelper.Serialize <Azure_CrossRef_File_Episode_Request>(input);

            SendData(uri, json, "POST");
        }