2015-12-09 04:57:38 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core
|
|
|
|
|
{
|
|
|
|
|
public class GlobalSettings
|
|
|
|
|
{
|
2016-02-06 07:18:25 +01:00
|
|
|
|
public virtual string SiteName { get; set; }
|
|
|
|
|
public virtual string BaseVaultUri { get; set; }
|
2015-12-09 04:57:38 +01:00
|
|
|
|
public virtual DocumentDBSettings DocumentDB { get; set; } = new DocumentDBSettings();
|
2016-02-06 07:18:25 +01:00
|
|
|
|
public virtual SqlServerSettings SqlServer { get; set; } = new SqlServerSettings();
|
2015-12-09 04:57:38 +01:00
|
|
|
|
public virtual MailSettings Mail { get; set; } = new MailSettings();
|
|
|
|
|
|
|
|
|
|
public class DocumentDBSettings
|
|
|
|
|
{
|
|
|
|
|
public string Uri { get; set; }
|
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
public string DatabaseId { get; set; }
|
|
|
|
|
public string CollectionIdPrefix { get; set; }
|
|
|
|
|
public int NumberOfCollections { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-06 07:18:25 +01:00
|
|
|
|
public class SqlServerSettings
|
|
|
|
|
{
|
|
|
|
|
public string ConnectionString { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-09 04:57:38 +01:00
|
|
|
|
public class MailSettings
|
|
|
|
|
{
|
|
|
|
|
public string APIKey { get; set; }
|
|
|
|
|
public string ReplyToEmail { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|