Fixes for new service

This commit is contained in:
2023-03-31 20:43:02 -04:00
parent 66f5b7ee0a
commit 2697521949
8 changed files with 220 additions and 74 deletions

View File

@@ -19,7 +19,7 @@ namespace HomeStatusWindow.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {

View File

@@ -12,7 +12,7 @@ namespace HomeStatusWindow.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -47,15 +47,48 @@ namespace HomeStatusWindow.Properties {
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("http://chip")]
public string ServerAddress {
[global::System.Configuration.DefaultSettingValueAttribute("00:00:30")]
public global::System.TimeSpan ReconnectTimerInterval {
get {
return ((string)(this["ServerAddress"]));
return ((global::System.TimeSpan)(this["ReconnectTimerInterval"]));
}
set {
this["ServerAddress"] = value;
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("00:01:00")]
public global::System.TimeSpan ReconnectTimeout {
get {
return ((global::System.TimeSpan)(this["ReconnectTimeout"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("http://{0}:{1}/api/hub/device-status")]
public string ServerUri {
get {
return ((string)(this["ServerUri"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("172.23.10.3")]
public string ServerName {
get {
return ((string)(this["ServerName"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("80")]
public int ServerPort {
get {
return ((int)(this["ServerPort"]));
}
}
}

View File

@@ -8,8 +8,20 @@
<Setting Name="WindowSettings" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="ServerAddress" Type="System.String" Scope="User">
<Value Profile="(Default)">http://chip</Value>
<Setting Name="ReconnectTimerInterval" Type="System.TimeSpan" Scope="Application">
<Value Profile="(Default)">00:00:30</Value>
</Setting>
<Setting Name="ReconnectTimeout" Type="System.TimeSpan" Scope="Application">
<Value Profile="(Default)">00:01:00</Value>
</Setting>
<Setting Name="ServerUri" Type="System.String" Scope="Application">
<Value Profile="(Default)">http://{0}:{1}/api/hub/device-status</Value>
</Setting>
<Setting Name="ServerName" Type="System.String" Scope="Application">
<Value Profile="(Default)">172.23.10.3</Value>
</Setting>
<Setting Name="ServerPort" Type="System.Int32" Scope="Application">
<Value Profile="(Default)">80</Value>
</Setting>
</Settings>
</SettingsFile>