예제 #1
0
        private static IApplicationPartManagerWithAssemblies AddParts(IApplicationPartManager parts, SiloSettings siloSettings)
        {
            var results = parts.AddMongoGrains()
                          .AddApplicationPart(typeof(DataChunk).Assembly)
                          .WithCodeGeneration();

            var linkedAsms = GetLinkedAssemblies(siloSettings);

            foreach (var asm in linkedAsms)
            {
                results.AddApplicationPart(asm);
            }

            return(results);
        }