本文整理汇总了C#中ErrorLog.ReadFile方法的典型用法代码示例。如果您正苦于以下问题:C# ErrorLog.ReadFile方法的具体用法?C# ErrorLog.ReadFile怎么用?C# ErrorLog.ReadFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ErrorLog
的用法示例。
在下文中一共展示了ErrorLog.ReadFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetAllSVDBData
public void GetAllSVDBData()
{
try
{
ErrorLog Log = new ErrorLog();
Log.WriteFiles(DateTime.Now.ToString() + "—" + "GetSVDBDataBuffer" + "—GetAllSVDBData_A");
string XFireUrl = Log.ReadFile();
XFireUrl = XFireUrl.Split(new char[1] { '=' })[1].Trim();
UserPermissionContext.Instance.Url = "http://"+ConfigManager.XfireUrl +"//webservice//InterfaceEccService";
ITreeDao treeDao = MicroKernelUtil.GetDefaultKernel()[typeof(ITreeDao)] as ITreeDao;
IList<NameValueCollection> tree = treeDao.GetAll2();
Dictionary<XmppSeverConnection, string> ReturnStr = new Dictionary<XmppSeverConnection, string>();
if (m_DataBuffer.Count < 1)
{
m_DataBuffer.Add(tree);
}
else
{
ReturnStr = CompareDataState(tree);
m_DataBuffer.RemoveAt(0);
m_DataBuffer.Add(tree);
if (ReturnStr.Count == 0)
{
return;
}
foreach (XmppSeverConnection key in ReturnStr.Keys)
{
if (ReturnStr[key] != "Norefresh")
{
List<string> SentStrList = new List<string>();
//if (ReturnStr.Length > 8192)
//{
// SentStrList = GetbatchdisableSendList(ReturnStr, "refresh<");
//}
//else
{
string sendStr = ReturnStr[key];
sendStr = sendStr + ">stop";
key.Send(sendStr);
//XmppServer.ClientConnectionList[i].Send(SentStrList[j]);
System.Threading.Thread.Sleep(1000);
}
//if (XmppServer.IsSendData)
//{
//if (SentStrList == null || SentStrList.Count == 0)
//{
// for (int i = 0; i < XmppServer.ClientConnectionList.Count; i++)
// {
// XmppServer.ClientConnectionList[i].Send(ReturnStr);
// System.Threading.Thread.Sleep(1000);
// }
//}
//else
//{
// for (int j = 0; j < SentStrList.Count; j++)
// {
// for (int i = 0; i < XmppServer.ClientConnectionList.Count; i++)
// {
// XmppServer.ClientConnectionList[i].Send(SentStrList[j]);
// System.Threading.Thread.Sleep(1000);
// }
// }
//}
// System.Threading.Thread.Sleep(5000);
// List<string> ClientResponseKeyList = new List<string>();
// if (XmppServer.ClientResponseList.Count > 0)
// {
// foreach (string key in XmppServer.ClientResponseList.Keys)
// {
// ClientResponseKeyList.Add(key);
// if (!XmppServer.ClientResponseList[key])
// {
// for (int i = 0; i < XmppServer.ClientConnectionList.Count; i++)
// {
// if (XmppServer.ClientConnectionList[i].ClientIPAddress == key)
// {
// if (SentStrList == null || SentStrList.Count == 0)
// {
// //for (int i = 0; i < XmppServer.ClientConnectionList.Count; i++)
// {
// XmppServer.ClientConnectionList[i].Send(ReturnStr);
// //System.Threading.Thread.Sleep(1000);
// }
// }
// else
// {
// for (int j = 0; j < SentStrList.Count; j++)
// {
// //for (int i = 0; i < XmppServer.ClientConnectionList.Count; i++)
// {
//.........这里部分代码省略.........