static async Task <IClientActorSystem> RunCluster() { var folder = Storage.Init(); silo = await new SiloHostBuilder() .ConfigureServices(s => s .AddSingletonNamedService <IGrainStorage>("copier", (sp, __) => new Storage(sp, typeof(CopierState), folder))) .AddSimpleMessageStreamProvider("notifications", o => { o.FireAndForgetDelivery = false; o.OptimizeForImmutableData = false; }) .ConfigureApplicationParts(x => x .AddApplicationPart(Assembly.GetExecutingAssembly()) .WithCodeGeneration()) .UseOrleankka() .Start(); return(silo.ActorSystem()); }