Initial Commit

This commit is contained in:
2021-06-03 14:48:02 +02:00
commit 370e41abab
15 changed files with 1070 additions and 0 deletions

View 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;
}
}