本文整理汇总了C#中IJob.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# IJob.ToString方法的具体用法?C# IJob.ToString怎么用?C# IJob.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IJob
的用法示例。
在下文中一共展示了IJob.ToString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RewardNinja
public void RewardNinja(IHero hero, IJob chosenJob)
{
int heroCashReward = chosenJob.Wage;
hero.GetCash(heroCashReward);
this.FightResult = string.Format("Congratulation hero is now working at {0}", chosenJob.ToString());
}
示例2: Successful
public void Successful(Guid id, IJob job)
{
_logger.InfoMessage(() => new PollingJobSuccess { Description = job.ToString(), JobRun = id });
}
示例3: Starting
public void Starting(Guid id, IJob job)
{
_logger.InfoMessage(() => new PollingJobStarted { Description = job.ToString(), JobRun = id });
}
示例4: Failed
public void Failed(Guid id, IJob job, Exception ex)
{
_logger.Error("Job {0}".ToFormat(job), ex);
_logger.InfoMessage(() => new PollingJobFailed { Description = job.ToString(), Exception = ex, JobRun = id });
}
示例5: Successful
public void Successful(IJob job)
{
_logger.InfoMessage(() => new PollingJobSuccess{Description = job.ToString()});
}
示例6: Starting
public void Starting(IJob job)
{
_logger.InfoMessage(() => new PollingJobStarted() { Description = job.ToString() });
}