本文整理汇总了C#中Logger.info方法的典型用法代码示例。如果您正苦于以下问题:C# Logger.info方法的具体用法?C# Logger.info怎么用?C# Logger.info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Logger
的用法示例。
在下文中一共展示了Logger.info方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例2: SubscriptionManager
//the plain constructor
public SubscriptionManager(Logger log, ConsorsGate cg)
{
_log = log;
_cg = cg;
_connections = new ArrayList();
_log.info("SubscriptionManager::SubscriptionManager", "constructing.");
}
示例3: ConsorsGate
public ConsorsGate(Logger l)
{
_log=l;
_log.info("ConsorsGate::ConsorsGate", "constructing.");
_quit=false;
_thread=new Thread(new ThreadStart(Run));
_thread.Start();
//initializing the core elements
_sm = new SubscriptionManager(_log, this);
_qs = new QuoteSystem(_log, this);
}