当前位置: 首页>>代码示例>>C#>>正文


C# Logger.fatal方法代码示例

本文整理汇总了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();
    }
开发者ID:BackupTheBerlios,项目名称:ccapi,代码行数:48,代码来源:QuoteSystem.cs


注:本文中的Logger.fatal方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。