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


C# Logger.info方法代码示例

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

示例2: SubscriptionManager

    //the plain constructor
    public SubscriptionManager(Logger log, ConsorsGate cg)
    {
        _log = log;
        _cg = cg;
        _connections = new ArrayList();

        _log.info("SubscriptionManager::SubscriptionManager", "constructing.");
    }
开发者ID:BackupTheBerlios,项目名称:ccapi,代码行数:9,代码来源:SubscriptionManager.cs

示例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);
    }
开发者ID:BackupTheBerlios,项目名称:ccapi,代码行数:13,代码来源:Server.cs


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