コード例 #1
0
        public PingCommand(IUptime uptime, IRuntimeSettings settings)
        {
            _uptime  = uptime;
            _postFix = settings.Environment;

            if (!string.IsNullOrWhiteSpace(_postFix))
            {
                _postFix = $" ({_postFix})";
            }
        }
コード例 #2
0
 public Status(IUptime uptime, DiscordSocketClient client)
 {
     _uptime = uptime;
     _client = client;
 }
コード例 #3
0
 public HomeController(IUptime uptime)
 {
     _uptime = uptime;
 }
 public CurrentProcessHeartbeatProvider(IUptime uptime)
 {
     _uptime = uptime;
 }
コード例 #5
0
 public ServicePreloader(GameService games, AutoReactionTrainer reactionTrainer, IReminderSender reminders, ISentimentEvaluator sentiment, IUptime uptime, ISpacexNotificationsSender spacexReminders)
 {
     // Parameters to this services cause those other services to be eagerly initialised.
 }