using App.Robot.Station.Logical;

using Sers.SersLoader;
using Sers.ServiceStation;
using Vit.Extensions;

namespace App.Robot.Station
{
    public class Program
    {

        public static void Main(string[] args)
        {
            //ServiceStation.AutoRun();

            //Sers.Core.Module.App.SersApplication.serviceStationInfo.stationVersion = "2.0.1";


            //(x.1) Init
            ServiceStation.Init();

            //(x.2) 加载Api
            ServiceStation.Instance.LoadSersApi(typeof(Program).Assembly, new ApiLoaderConfig { apiStationName = "_robot_" });
            ServiceStation.Instance.localApiService.LoadApi_StaticFiles();


            //(x.3) Start
            ServiceStation.Start();


            //(x.4) RunAwait
            ServiceStation.RunAwait();

        }
    }
}
