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