32 lines
929 B
C#
32 lines
929 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using DataPro.Core.Config;
|
|
|
|
namespace DataPro.Core.PluginLib
|
|
{
|
|
/// <summary>
|
|
/// Static class used to store plugin configuration info
|
|
/// </summary>
|
|
public static class PluginConfig
|
|
{
|
|
/// <summary>
|
|
/// name of setting to look in config for equipment database
|
|
/// </summary>
|
|
public const string DataProPlugins = "dataProPlugins";
|
|
|
|
|
|
/// <summary>
|
|
/// concatenate plugin name from app setting with class exporter name for dataPro plugins
|
|
/// </summary>
|
|
/// <param name="setting"></param>
|
|
/// <returns></returns>
|
|
public static string GetDataProPluginsSetting(string setting)
|
|
{
|
|
return DataProConfig.GetAppSetting(DataProPlugins) + "." + setting;
|
|
}
|
|
}
|
|
}
|