public static async void StartServer() { if (_server is null) { throw new NullReferenceException("Server has't created or set"); } await Task.Run(() => { ReduceTtl(); _server.ServerStart(); }); }