Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }