ActorChat.Services.SFRoomActor.Program.Main C# (CSharp) Метод

Main() приватный статический Метод

This is the entry point of the service host process.
private static Main ( ) : void
Результат void
        private static void Main()
        {
            try
            {
                ServicePointManager.DefaultConnectionLimit = 1000;
                ThreadPool.SetMinThreads(10, 10);

                ActorRuntime.RegisterActorAsync<SFRoomActor>(
                   (context, actorType) => new ActorService(context, actorType, () => new SFRoomActor())).GetAwaiter().GetResult();

                Thread.Sleep(Timeout.Infinite);
            }
            catch (Exception e)
            {
                ActorEventSource.Current.ActorHostInitializationFailed(e.ToString());
                throw;
            }
        }
    }
Program