You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
633 B
C#
29 lines
633 B
C#
using Microsoft.Extensions.Options;
|
|
using System;
|
|
|
|
namespace SlnMesnac.Config
|
|
{
|
|
/// <summary>
|
|
/// 系统配置
|
|
/// </summary>
|
|
public class AppConfig : IOptions<AppConfig>
|
|
{
|
|
/// <summary>
|
|
/// 日志文件路径
|
|
/// </summary>
|
|
public string logPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// MES 数据库连接字符串
|
|
/// </summary>
|
|
public string mesConnStr { get; set; }
|
|
|
|
/// <summary>
|
|
/// MCS 数据库连接字符串
|
|
/// </summary>
|
|
public string mcsConnStr { get; set; }
|
|
|
|
public AppConfig Value => this;
|
|
}
|
|
}
|