| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
-
- using ApiProcessToken.Models.common;
- using CommonObj.common;
- using CommonObj.model;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.IO;
- using System.Linq;
- using System.Reflection;
- using System.Security.Policy;
- using System.Threading.Tasks;
- using System.Xml;
- namespace ApiProcess.Process
- {
- public class Variable
- {
- static readonly log4net.ILog logger = log4net.LogManager.GetLogger(typeof(Variable));
- public static ProcessUpdateDb _threadLoadData;
- public static Queue chargerObj;
-
- public static void LoadConfigData()
- {
- try
- {
- chargerObj = new Queue();
-
- _threadLoadData = new ProcessUpdateDb();
- string sName = "ProcessReload Stard: " + Guid.NewGuid().ToString();
- _threadLoadData.Start(sName);
-
- }
- catch (Exception ex)
- {
- }
- }
- public static void WriteLineAppendTextFile(string sFileName, string sLine)
- {
- try
- {
- StreamWriter sw = null;
- if (File.Exists(sFileName))
- sw = File.AppendText(sFileName);
- else
- sw = File.CreateText(sFileName);
- sw.WriteLine(sLine);
- sw.Close();
- }
- catch
- {
- //MessageBox.Show(ex1.Message);
- }
- }
- }
- }
|