本文整理汇总了C#中ResultClass类的典型用法代码示例。如果您正苦于以下问题:C# ResultClass类的具体用法?C# ResultClass怎么用?C# ResultClass使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ResultClass类属于命名空间,在下文中一共展示了ResultClass类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ThreadFrameCmdAsync
protected override async Task<Results> ThreadFrameCmdAsync(string command, ResultClass expectedResultClass, int threadId, uint frameLevel)
{
// first aquire an exclusive lock. This is used as we don't want to fight with other commands that also require the current
// thread to be set to a particular value
ExclusiveLockToken lockToken = await _debugger.CommandLock.AquireExclusive();
try
{
await ThreadSelect(threadId, lockToken);
await StackSelectFrame(frameLevel, lockToken);
// Before we execute the provided command, we need to switch to a shared lock. This is because the provided
// command may be an expression evaluation command which could be long running, and we don't want to hold the
// exclusive lock during this.
lockToken.ConvertToSharedLock();
lockToken = null;
return await _debugger.CmdAsync(command, expectedResultClass);
}
finally
{
if (lockToken != null)
{
// finally is executing before we called 'ConvertToSharedLock'
lockToken.Close();
}
else
{
// finally is called after we called ConvertToSharedLock, we need to decerement the shared lock count
_debugger.CommandLock.ReleaseShared();
}
}
}
示例2: VarCreate
public override async Task<Results> VarCreate(string expression, int threadId, uint frameLevel, enum_EVALFLAGS dwFlags, ResultClass resultClass = ResultClass.done)
{
string command = string.Format("-var-create - - \"{0}\"", expression); // use '-' to indicate that "--frame" should be used to determine the frame number
Results results = await ThreadFrameCmdAsync(command, resultClass, threadId, frameLevel);
return results;
}
示例3: VarListChildren
public override async Task<Results> VarListChildren(string variableReference, enum_DEBUGPROP_INFO_FLAGS dwFlags, ResultClass resultClass = ResultClass.done)
{
// This override is necessary because lldb treats any object with children as not a simple object.
// This prevents char* and char** from returning a value when queried by -var-list-children
// Limit the number of children expanded to 1000 in case memory is uninitialized
string command = string.Format("-var-list-children --all-values \"{0}\" 0 1000", variableReference);
Results results = await _debugger.CmdAsync(command, resultClass);
return results;
}
示例4: Start
//.........这里部分代码省略.........
dateone = (DateTime.Now.Year - 1911).ToString() + (DateTime.Now.Month - 1);
}
else
{
dateone = (DateTime.Now.Year - 1911).ToString() + DateTime.Now.Month;
}
}
else if (DateTime.Now.Month == 1)
{
dateone = (DateTime.Now.AddMonths(-1).Year - 1911).ToString() + "12";
}
else
{
if (DateTime.Now.Month % 2 == 1)
{
dateone = (DateTime.Now.Year - 1911).ToString() + "0" + (DateTime.Now.Month - 1);
}
else
{
dateone = (DateTime.Now.Year - 1911).ToString() + "0" + DateTime.Now.Month;
}
}
string url = string.Empty;
if (requestUrl.Trim() == string.Empty)
{
url = urlone + dateone + urltwo;
}
else
{
url = requestUrl;
}
string json = GetPage(url, "utf-8");
ResultClass rc = new ResultClass();
#endregion
MailHelper mail = new MailHelper(mailModel);
int year = 0;
int month = 0;
string[,] strarray = new string[,]{};
bool isHaveInfo = false;
try//判斷如果出錯發郵件
{
rc = JsonConvert.DeserializeObject<ResultClass>(json);
year = Convert.ToInt32(rc.invoYm.Substring(0, 3));
month = Convert.ToInt32(rc.invoYm.Substring(3, 2));
strarray = new string[20,2] { { "superPrizeNo", rc.superPrizeNo }, { "spcPrizeNo", rc.spcPrizeNo }, { "spcPrizeNo2", rc.spcPrizeNo2 },
{ "spcPrizeNo3", rc.spcPrizeNo3 }, { "firstPrizeNo1", rc.firstPrizeNo1 }, { "firstPrizeNo2", rc.firstPrizeNo2 },
{ "firstPrizeNo3", rc.firstPrizeNo3 }, { "firstPrizeNo4", rc.firstPrizeNo4 }, { "firstPrizeNo5", rc.firstPrizeNo5 },
{ "firstPrizeNo6", rc.firstPrizeNo6 }, { "firstPrizeNo7", rc.firstPrizeNo7 }, { "firstPrizeNo8", rc.firstPrizeNo8 },
{ "firstPrizeNo9", rc.firstPrizeNo9 }, { "firstPrizeNo10", rc.firstPrizeNo10 }, { "sixthPrizeNo1", rc.sixthPrizeNo1 },
{ "sixthPrizeNo2", rc.sixthPrizeNo2 }, { "sixthPrizeNo3", rc.sixthPrizeNo3 }, { "sixthPrizeNo4", rc.sixthPrizeNo4 },
{ "sixthPrizeNo5", rc.sixthPrizeNo5 }, { "sixthPrizeNo6", rc.sixthPrizeNo6 } };
isHaveInfo = true;
}
catch (Exception ex)
{
MailBody = "<p/><a href=" + url + ">" + url + "</a>" + " 該鏈接中未讀到數據!";
mail.SendToGroup(GroupCode, MailTitle, MailBody + " ", IsSeparate, IsDisplyName);
//throw new Exception(ex.Message);
}
if (isHaveInfo)//如果從鏈接中讀到數據
{
for (int i = 0; i < strarray.GetLength(0); i++)
示例5: VarListChildren
public override async Task<Results> VarListChildren(string variableReference, enum_DEBUGPROP_INFO_FLAGS dwFlags, ResultClass resultClass = ResultClass.done)
{
string command = string.Format("-var-list-children --simple-values \"{0}\" --propertyInfoFlags {1}", variableReference, (uint)dwFlags);
Results results = await _debugger.CmdAsync(command, resultClass);
return results;
}
示例6: WaitingOperationDescriptor
public WaitingOperationDescriptor(string command, ResultClass expectedResultClass)
{
this.Command = command;
_expectedResultClass = expectedResultClass;
StartTime = DateTime.Now;
}
示例7: StackInfoDepth
public async Task<Results> StackInfoDepth(int threadId, int maxDepth = 1000, ResultClass resultClass = ResultClass.done)
{
string command = string.Format(@"-stack-info-depth {0}", maxDepth);
Results results = await ThreadCmdAsync(command, resultClass, threadId);
return results;
}
示例8: VarCreate
public virtual async Task<Results> VarCreate(string expression, int threadId, uint frameLevel, ResultClass resultClass = ResultClass.done)
{
string command = string.Format("-var-create - * \"{0}\"", expression);
Results results = await ThreadFrameCmdAsync(command, resultClass, threadId, frameLevel);
return results;
}
示例9: VarEvaluateExpression
public async Task<Results> VarEvaluateExpression(string variableName, ResultClass resultClass = ResultClass.done)
{
string command = string.Format(@"-var-evaluate-expression {0}", variableName);
Results results = await _debugger.CmdAsync(command, resultClass);
return results;
}
示例10: SetOption
public virtual async Task<Results> SetOption(string variable, string value, ResultClass resultClass = ResultClass.done)
{
string command = string.Format("-gdb-set {0} {1}", variable, value);
Results results = await _debugger.CmdAsync(command, resultClass);
return results;
}
示例11: Catch
public override async Task Catch(string name, bool onlyOnce = false, ResultClass resultClass = ResultClass.done)
{
string command = onlyOnce ? "tcatch " : "catch ";
await _debugger.ConsoleCmdAsync(command + name);
}
示例12: BreakWatch
public virtual Task<Results> BreakWatch(string address, uint size, ResultClass resultClass = ResultClass.done)
{
throw new NotImplementedException();
}
示例13: Catch
public abstract Task Catch(string name, bool onlyOnce = false, ResultClass resultClass = ResultClass.done);
示例14: BreakInsert
public virtual async Task<Results> BreakInsert(ulong codeAddress, string condition, ResultClass resultClass = ResultClass.done)
{
StringBuilder cmd = BuildBreakInsert(condition);
cmd.Append('*');
cmd.Append(codeAddress);
return await _debugger.CmdAsync(cmd.ToString(), resultClass);
}
示例15: VarListChildren
public virtual async Task<Results> VarListChildren(string variableReference, enum_DEBUGPROP_INFO_FLAGS dwFlags, ResultClass resultClass = ResultClass.done)
{
// Limit the number of children expanded to 1000 in case memory is uninitialized
string command = string.Format("-var-list-children --simple-values \"{0}\" 0 1000", variableReference);
Results results = await _debugger.CmdAsync(command, resultClass);
return results;
}