本文整理汇总了C#中Logger.fatal方法的典型用法代码示例。如果您正苦于以下问题:C# Logger.fatal方法的具体用法?C# Logger.fatal怎么用?C# Logger.fatal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Logger
的用法示例。
在下文中一共展示了Logger.fatal方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QuoteSystem
// the quote system constructor
public QuoteSystem(Logger l, ConsorsGate cg)
{
//setting the local variables
_log = l;
_cg = cg;
_log.info("QuoteSystem::QuoteSystem", "constructing quote system");
//initialize the consors system.
// Create the session facade
try{
sf = new SessionFacade();
// Login
sf.LoginWithAddOnName("Ulrich Staudinger");
_log.info("QuoteSystem::QuoteSystem", "logged in.");
//registering for now, the plain dax values.
// Create the parameters that you need for the quote subscription, here the QuoteKey
QuoteKey qk = sf.CreateQuoteKey();
// Set all necessary parameters
qk.SecurityCode = "846900";
qk.StockexchangeId = "ETR";
// Acquire the subscription with this QuoteKey
QuoteSubscription qs = sf.GetQuoteSubscription(qk);
// Register your event handler on the subscription
CallbackQuote cbQuote = new CallbackQuote(quoteHandler);
qs.OnQuoteUpdate += cbQuote;
_log.info("QuoteSystem::QuoteSystem", "subscribed to dax.");
}
catch (Exception ex)
{
_log.fatal("QuoteSystem::QuoteSystem", "Exception while starting QuoteSystem:");
_log.fatal("QuoteSystem::QuoteSystem", ex.Message);
}
Thread constantRunner = new Thread(new ThreadStart(Run));
constantRunner.Start();
}