Initial Commit
This commit is contained in:
22
Akari.Prototype.Server/Options/TcpProviderOptions.cs
Normal file
22
Akari.Prototype.Server/Options/TcpProviderOptions.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Akari.Prototype.Server.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Akari.Prototype.Server.Options
|
||||
{
|
||||
public class TcpProviderOptions
|
||||
{
|
||||
public const string FilePath = "provider.json";
|
||||
public const string SectionPath = "Provider";
|
||||
|
||||
[IPAddress]
|
||||
public string ListeningAddress { get; set; } = "0.0.0.0";
|
||||
|
||||
[Range(ushort.MinValue, ushort.MaxValue)]
|
||||
public int Port { get; set; } = 1892;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user