本文整理汇总了C#中Bjd.Kernel.ProgDir方法的典型用法代码示例。如果您正苦于以下问题:C# Kernel.ProgDir方法的具体用法?C# Kernel.ProgDir怎么用?C# Kernel.ProgDir使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bjd.Kernel
的用法示例。
在下文中一共展示了Kernel.ProgDir方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WebDavDb
public WebDavDb(Kernel kernel, string nameTag)
{
NameTag = nameTag;
_fileName = string.Format("{0}\\webdav.{1}.db", kernel.ProgDir(), Util.SwapChar(':', '-', nameTag));
//ファイルからの読み込み
if (File.Exists(_fileName)) {
using (var sr = new StreamReader(_fileName, Encoding.GetEncoding("Shift_JIS"))) {
while (true) {
string str = sr.ReadLine();
if (str == null)
break;
var oneWebDavDb = new OneWebDavDb(Inet.TrimCrlf(str));
if (oneWebDavDb.Uri != "") {
_ar.Add(oneWebDavDb);
}
}
sr.Close();
}
}
}
示例2: Server
readonly string _wpadUrl; //WPAD
#endregion Fields
#region Constructors
//�R���X�g���N�^
public Server(Kernel kernel, Conf conf,OneBind oneBind)
: base(kernel, conf, oneBind)
{
//�I�v�V�����̓ǂݍ���
_maskIp = (Ip)Conf.Get("maskIp");
_gwIp = (Ip)Conf.Get("gwIp");
_dnsIp0 = (Ip)Conf.Get("dnsIp0");
_dnsIp1 = (Ip)Conf.Get("dnsIp1");
_leaseTime = (int)Conf.Get("leaseTime");
if (_leaseTime <= 0)
_leaseTime = 86400;
if ((bool)Conf.Get("useWpad")) {
_wpadUrl = (string)Conf.Get("wpadUrl");
}
//DB����
string fileName = string.Format("{0}\\lease.db", kernel.ProgDir());
var startIp = (Ip)Conf.Get("startIp");
var endIp = (Ip)Conf.Get("endIp");
_macAcl = (Dat)Conf.Get("macAcl");
//�ݒ肪�����ꍇ�́A���Dat������
if (_macAcl == null){
_macAcl = new Dat(new CtrlType[]{CtrlType.TextBox,CtrlType.AddressV4, CtrlType.TextBox});
}
//Ver5.6.8
//�J�������u���O�i�\����)�v�𑝂₵�����Ƃɂ��݊����ێ�
if (_macAcl.Count > 0) {
foreach (OneDat t in _macAcl){
if (t.StrList.Count == 2) {
t.StrList.Add(string.Format("host_{0}",t.StrList[1]));
}
}
}
_lease = new Lease(fileName, startIp, endIp, _leaseTime, _macAcl);
//�T�[�o�A�h���X�̏�����
_serverAddress = Define.ServerAddress();
}
示例3: SvMail
private readonly WebApi _webApi; //コントロール
#endregion Fields
#region Constructors
public SvMail(Kernel kernel)
{
_webApi = kernel.WebApi;
_mailBox = kernel.MailBox;
_mailQueue = kernel.ProgDir() + "\\MailQueue";
}