static void InitSilo(string[] args) { hostWrapper = new OrleansHostWrapper(args); if (!hostWrapper.Run()) { Console.Error.WriteLine("Failed to initialize Orleans silo"); } }
private static int StartSilo(string[] args) { // define the cluster configuration var config = ClusterConfiguration.LocalhostPrimarySilo(siloPort: 11111, gatewayPort: 30000); config.AddMemoryStorageProvider(); _hostWrapper = new OrleansHostWrapper(config, args); return(_hostWrapper.Run()); }
private static int InitializeOrleans() { var config = new ClusterConfiguration(); config.Globals.DataConnectionString = "YOUR AZURE STORAGE CONNECTION STRING HERE"; config.Globals.DeploymentId = "Orleans-Docker"; config.Globals.LivenessType = GlobalConfiguration.LivenessProviderType.AzureTable; config.Globals.ReminderServiceType = GlobalConfiguration.ReminderServiceProviderType.AzureTable; config.Defaults.PropagateActivityId = true; config.Defaults.ProxyGatewayEndpoint = new IPEndPoint(IPAddress.Any, 10400); config.Defaults.Port = 10300; var ips = Dns.GetHostAddressesAsync(Dns.GetHostName()).Result; config.Defaults.HostNameOrIPAddress = ips.FirstOrDefault()?.ToString(); hostWrapper = new OrleansHostWrapper(config); return(hostWrapper.Run()); }
private static int InitializeOrleans() { var config = new ClusterConfiguration(); config.Globals.DataConnectionString = "Server=tnwli-pc.dmtnprod.lan;Database=ApprovalSystem;User Id=QTIP;Password=QTIP; "; config.Globals.ClusterId = "AprovalSiloID"; config.Globals.LivenessType = GlobalConfiguration.LivenessProviderType.SqlServer; config.Globals.ReminderServiceType = GlobalConfiguration.ReminderServiceProviderType.SqlServer; config.Defaults.PropagateActivityId = true; config.Defaults.ProxyGatewayEndpoint = new System.Net.IPEndPoint(IPAddress.Any, 18000); config.Defaults.Port = 18100; var ips = Dns.GetHostAddressesAsync(Dns.GetHostName()).Result; config.Defaults.HostNameOrIPAddress = ips.FirstOrDefault()?.ToString(); _hostWrapper = new OrleansHostWrapper(config); return(_hostWrapper.Run()); }