public static IServiceCollection AddPathServiceActorHost(this IServiceCollection services, int capacity = 10000)
        {
            services.VerifyNotNull(nameof(services));

            services.AddSingleton <IActorHost>(x =>
            {
                ILoggerFactory loggerFactory = x.GetRequiredService <ILoggerFactory>();

                IActorHost host = new ActorHost(capacity, loggerFactory);
                host.AddPathServiceActors(x);

                return(host);
            });

            return(services);
        }