Skip to content

Commit

Permalink
EpicChain Core - EppicChain Lab's
Browse files Browse the repository at this point in the history
  • Loading branch information
xmoohad committed Nov 29, 2024
1 parent 8b1b1ba commit a889efc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Plugins/OracleService/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public HttpsSettings(IConfigurationSection section)
}
}

class EpicChainSettings
class NeoFSSettings
{
public string EndPoint { get; }
public TimeSpan Timeout { get; }

public EpicChainSettings(IConfigurationSection section)
public NeoFSSettings(IConfigurationSection section)
{
EndPoint = section.GetValue("EndPoint", "127.0.0.1:8080");
Timeout = TimeSpan.FromMilliseconds(section.GetValue("Timeout", 15000));
Expand All @@ -56,7 +56,7 @@ class Settings : PluginSettings
public bool AllowPrivateHost { get; }
public string[] AllowedContentTypes { get; }
public HttpsSettings Https { get; }
public EpicChainSettings NeoFS { get; }
public NeoFSSettings NeoFS { get; }
public bool AutoStart { get; }

public static Settings Default { get; private set; }
Expand All @@ -70,7 +70,7 @@ private Settings(IConfigurationSection section) : base(section)
AllowPrivateHost = section.GetValue("AllowPrivateHost", false);
AllowedContentTypes = section.GetSection("AllowedContentTypes").GetChildren().Select(p => p.Get<string>()).ToArray();
Https = new HttpsSettings(section.GetSection("Https"));
NeoFS = new EpicChainSettings(section.GetSection("NeoFS"));
NeoFS = new NeoFSSettings(section.GetSection("NeoFS"));
AutoStart = section.GetValue("AutoStart", false);
}

Expand Down

0 comments on commit a889efc

Please sign in to comment.