From d931a505f7f0b06541b7ac5719e5882a947b8e23 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 27 Apr 2020 21:07:57 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/Timestamp.cs | 34 ------------------- source/Plugins/AyaNova.Plugin.V8/util.cs | 6 ++++ 2 files changed, 6 insertions(+), 34 deletions(-) delete mode 100644 source/Plugins/AyaNova.Plugin.V8/Timestamp.cs diff --git a/source/Plugins/AyaNova.Plugin.V8/Timestamp.cs b/source/Plugins/AyaNova.Plugin.V8/Timestamp.cs deleted file mode 100644 index 7718e46..0000000 --- a/source/Plugins/AyaNova.Plugin.V8/Timestamp.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -// The namespace can be overidden by the /N option: -// GenerateTimeStampFile file.cs /N:MyNameSpace -// Such settings will override your value here. -namespace AyaNova.PlugIn.V8 - { - /// - /// Static Timestamp related data. - /// - /// - /// THIS FILE IS CHANGED BY EXTERNAL PROGRAMS. - /// Do not modify the namespace, as it may be overwritten. You can - /// set the namespace with the /N option. - /// Do not modify the definition of BuildAt as your changes will be discarded. - /// Do not modify the definition of TimeStampedBy as your changes will be discarded. - /// - public static class Timestamp - { - /// - /// The time stamp - /// - /// - /// Do not modify the definition of BuildAt as your changes will be discarded. - /// - public static DateTime BuildAt { get { return new DateTime(637235928899361619); } } //--** - /// - /// The program that time stamped it. - /// - /// - /// Do not modify the definition of TimeStampedBy as your changes will be discarded. - /// - public static string TimeStampedBy { get { return @"GZTW.AyaNova.BLL.TS"; } } //--** - } - } diff --git a/source/Plugins/AyaNova.Plugin.V8/util.cs b/source/Plugins/AyaNova.Plugin.V8/util.cs index 18f88ae..8caae9b 100644 --- a/source/Plugins/AyaNova.Plugin.V8/util.cs +++ b/source/Plugins/AyaNova.Plugin.V8/util.cs @@ -32,6 +32,12 @@ namespace AyaNova.PlugIn.V8 serverUrl += API_BASE_ROUTE; } + if (!serverUrl.StartsWith("http")) serverUrl = "http://" + serverUrl; + //client.BaseAddress = new Uri("http://localhost:64195/"); + //client.DefaultRequestHeaders.Accept.Clear(); + //client.DefaultRequestHeaders.Accept.Add( + // new MediaTypeWithQualityHeaderValue("application/json")); + //try to connect, ping the server api client.BaseAddress = new Uri(serverUrl); client.DefaultRequestHeaders.Accept.Clear();