本文整理汇总了C#中ILogger.Message方法的典型用法代码示例。如果您正苦于以下问题:C# ILogger.Message方法的具体用法?C# ILogger.Message怎么用?C# ILogger.Message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ILogger
的用法示例。
在下文中一共展示了ILogger.Message方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NaiveBear
public NaiveBear(IConfiguration config, ILogger logger)
{
_logger = logger;
_logger.Message("Naive Bear trader initialized with operative share " + OPERATIVE_AMOUNT + " BTC");
_requestor = new BtcChinaApi(config, logger);
_trend = new MarketTrend();
}
示例2: NaiveBull
public NaiveBull(IConfiguration config, ILogger logger)
{
_logger = logger;
_logger.Message("Naive Bull trader initialized with operative amount " + OPERATIVE_AMOUNT + " BTC");
_requestor = new HuobiApi(config, logger);
_trend = new MarketTrend();
}
示例3: NightlyFrogBoiling
public NightlyFrogBoiling(IConfiguration config, ILogger logger)
{
_logger = logger;
_operativeAmount = double.Parse(config.GetValue("operative_amount"));
_logger.Message("Nightly Frog Boiling trader initialized with operative amount " + _operativeAmount + " BTC");
_requestor = new BtcChinaApi(config, logger);
}