Beispiel #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);
        }
Beispiel #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);
        }