This commit is contained in:
2020-04-27 21:07:57 +00:00
parent f752a986b1
commit d931a505f7
2 changed files with 6 additions and 34 deletions

View File

@@ -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
{
/// <summary>
/// Static Timestamp related data.
/// </summary>
/// <remarks>
/// 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.
/// </remarks>
public static class Timestamp
{
/// <summary>
/// The time stamp
/// </summary>
/// <remarks>
/// Do not modify the definition of BuildAt as your changes will be discarded.
/// </remarks>
public static DateTime BuildAt { get { return new DateTime(637235928899361619); } } //--**
/// <summary>
/// The program that time stamped it.
/// </summary>
/// <remarks>
/// Do not modify the definition of TimeStampedBy as your changes will be discarded.
/// </remarks>
public static string TimeStampedBy { get { return @"GZTW.AyaNova.BLL.TS"; } } //--**
}
}

View File

@@ -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();