Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var config = OrleansConfigReader.ReadDashboardConfig();

            SiloHostServer = OrleansSiloStartup.StartDashboardServer(config, new Type[] { typeof(UserServer) });
            ClusterClient  = OrleansSiloStartup.StartOrleansClient(config, new Type[] { typeof(IUser) }, null);

            Console.Read();
        }
Ejemplo n.º 2
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);

            var configure = OrleansConfigReader.ReadSiloConfig();

            OrleansSiloStartup.StartOrleansServer(configure, new Type[] { typeof(UserServer) }, services);
            OrleansSiloStartup.StartOrleansClient(configure, new Type[] { typeof(IUser) }, services);

            this.SetSwagger(services);
        }