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(); }
// 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); }