コード例 #1
0
        public virtual void Start(IServiceProvider serviceProvider)
        {
            ErrorLog = serviceProvider.GetService <IErrorLog>();
            serviceHeartbeatService = serviceProvider.GetService <IServiceHeartbeatService>();
            IsRunning = true;
            TimerCallback callback = Execute;

            Timer = new Timer(callback, this, Interval, Interval);
        }
コード例 #2
0
 public AdminApiController(ISettingsManager settingsManager, ICategoryService categoryService, IForumService forumService, IUserService userService, ISearchService searchService, IProfileService profileService, IUserRetrievalShim userRetrievalShim, IImageService imageService, IBanService banService, IMailingListService mailingListService, IEventDefinitionService eventDefinitionService, IAwardDefinitionService awardDefinitionService, IEventPublisher eventPublisher, IIPHistoryService ipHistoryService, ISecurityLogService securityLogService, IModerationLogService moderationLogService, IErrorLog errorLog, IServiceHeartbeatService serviceHeartbeatService)
 {
     _settingsManager        = settingsManager;
     _categoryService        = categoryService;
     _forumService           = forumService;
     _userService            = userService;
     _searchService          = searchService;
     _profileService         = profileService;
     _userRetrievalShim      = userRetrievalShim;
     _imageService           = imageService;
     _banService             = banService;
     _mailingListService     = mailingListService;
     _eventDefinitionService = eventDefinitionService;
     _awardDefinitionService = awardDefinitionService;
     _eventPublisher         = eventPublisher;
     _ipHistoryService       = ipHistoryService;
     _securityLogService     = securityLogService;
     _moderationLogService   = moderationLogService;
     _errorLog = errorLog;
     _serviceHeartbeatService = serviceHeartbeatService;
 }