Files
Akari.Prototype/Akari.Prototype.Server/Options/TcpProviderOptions.cs
2021-06-03 14:48:02 +02:00

23 lines
587 B
C#

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