First commit that builds.
This commit is contained in:
36
code/MessengerBroker/Settings.cs
Normal file
36
code/MessengerBroker/Settings.cs
Normal file
@ -0,0 +1,36 @@
|
||||
namespace MessengerBroker
|
||||
{
|
||||
public class Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// Connection string to Messenger API DB.
|
||||
/// </summary>
|
||||
public string MessengerApiDbConnectionString { get; set; }
|
||||
|
||||
public string MessengerBrokerDbConnectionString { get; set; }
|
||||
|
||||
public Guid BrokerId { get; set; }
|
||||
|
||||
public MasterServer[] Masters { get; set; }
|
||||
|
||||
public SlaveServer[] Slaves { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A server that we are a slave to. If this server goes down, their users will alternate to us and we have to provide service during outage. We pull data from this server.
|
||||
/// </summary>
|
||||
public class MasterServer
|
||||
{
|
||||
public string BrokerApiUrl { get; set; }
|
||||
|
||||
public Guid BrokerId { set; get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A server that slaves to us in case of our own outage. They pull from us.
|
||||
/// </summary>
|
||||
public class SlaveServer
|
||||
{
|
||||
public Guid BrokerId { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user