public static FabricRuntime Create(string namespaceRoot = null) { FabricRuntime runtime = new FabricRuntime(); if (Assemblies == null) { Assemblies = LoadAssemblies(namespaceRoot); Services = new Dictionary <string, Type[]>(); Actors = new Dictionary <string, Type[]>(); FabricThreadPoolHelper.ConfigureThreadPool(); } return(runtime); }
public static FabricRuntime Create(string namespaceRoot = null) { FabricRuntime runtime = new FabricRuntime(); if (Assemblies == null) { Assemblies = LoadAssemblies(namespaceRoot); Services = new Dictionary <string, Type[]>(); Actors = new Dictionary <string, Type[]>(); ActorServiceFactories = new Dictionary <Type, Func <StatefulServiceContext, ActorTypeInformation, ActorService> >(); FabricThreadPoolHelper.ConfigureThreadPool(); } return(runtime); }