• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ILoggerService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ILoggerService的典型用法代码示例。如果您正苦于以下问题:C# ILoggerService类的具体用法?C# ILoggerService怎么用?C# ILoggerService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ILoggerService类属于命名空间,在下文中一共展示了ILoggerService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: HardwareInventoryCycleSccm

  public HardwareInventoryCycleSccm(ILoggerService logger, IWmiServices wmiService, ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) 
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName = "Hardware Inventory Cycle";
     Description = "Forces SCCM to schedule a Hardware Inventory check on the client.";
     Category = "SCCM";
 }
开发者ID:ZXeno,项目名称:Andromeda,代码行数:7,代码来源:HardwareInventoryCycleSccm.cs


示例2: FileCopy

 public FileCopy(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
     : base(logger, networkServices, fileAndFolderServices)
 {
     ActionName = "File Copy";
     Description = "Copy file to all devices in the list.";
     Category = "Other";
 }
开发者ID:ZXeno,项目名称:Andromeda,代码行数:7,代码来源:FileCopy.cs


示例3: YoufferPaymentService

 /// <summary>
 /// Initializes a new instance of the <see cref="YoufferPaymentService"/> class.
 /// </summary>
 /// <param name="loggerService">The logger service.</param>
 /// <param name="paymentRepository">The payment repository.</param>
 /// <param name="payPalDetailsRepository"> The PayPalDetails repository</param>
 /// <param name="mapperFactory">The mapper factory.</param>
 public YoufferPaymentService(ILoggerService loggerService, IRepository<LeadOpportunityMapping> paymentRepository, IRepository<PayPalDetails> payPalDetailsRepository, IMapperFactory mapperFactory)
 {
     this.LoggerService = loggerService;
     this.paymentRepository = paymentRepository;
     this.mapperFactory = mapperFactory;
     this.payPalDetailsRepository = payPalDetailsRepository;
 }
开发者ID:fishonline,项目名称:API-1,代码行数:14,代码来源:YoufferPaymentService.cs


示例4: AccountController

        /// <summary>
        /// Initializes a new instance of the <see cref="AccountController"/> class.
        /// </summary>
        /// <param name="logger">Logger Service</param>
        /// <param name="loginService">Login Service</param>
        /// <param name="userService">User Service</param>
        /// <param name="passwordService">Password Service</param>
        public AccountController(
            ILoggerService logger, 
            ILoginService loginService, 
            IUserService userService, 
            IPasswordService passwordService)
            : base(logger)
        {
            if (loginService == null)
            {
                throw new ArgumentNullException("ILoginService, LoginController");
            }

            if (userService == null)
            {
                throw new ArgumentNullException("IUserService, LoginController");
            }

            if(passwordService == null)
            {
                throw new ArgumentNullException("IPasswordService, LoginController");
            }

            this._loginService = loginService;
            this._userService = userService;
            this._passwordService = passwordService;
        }
开发者ID:kiran94,项目名称:travelme,代码行数:33,代码来源:AccountController.cs


示例5: AppDeploymentScheduleSccm

 public AppDeploymentScheduleSccm(ILoggerService logger, IWmiServices wmiService, ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) 
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName = "Application Deployment Evaluation Cycle";
     Description = "Forces SCCM to schedule an Application Deployment check on the client.";
     Category = "SCCM";
 }
开发者ID:ZXeno,项目名称:Andromeda,代码行数:7,代码来源:AppDeploymentScheduleSccm.cs


示例6: PushService

        /// <summary>
        /// Initializes a new instance of the <see cref="PushService" /> class.
        /// </summary>
        /// <param name="googleGcmApiKey"> The google api key</param>
        /// <param name="appleCertPwd"> The Api certificate password</param>
        /// <param name="outputPath">The output path</param>
        /// <param name="loggerService"> The logger service</param>
        /// <param name="mapperFactory">the mapper factory</param>
        /// <param name="notificationLogRepository">The notification log repository</param>
        public PushService(string googleGcmApiKey, string appleCertPwd, string outputPath, ILoggerService loggerService, IMapperFactory mapperFactory, IRepository<NotificationLog> notificationLogRepository)
        {
            this.loggerService = loggerService;
            this.mapperFactory = mapperFactory;
            this.notificationLogRepository = notificationLogRepository;

            this.pushBroker = new PushBroker();
            try
            {
                this.pushBroker.RegisterGcmService(new GcmPushChannelSettings(googleGcmApiKey));
            }
            catch (Exception ex)
            {
                this.loggerService.LogException("Register Android notification service" + ex.Message);
            }

            var appleCert = File.ReadAllBytes(outputPath);

            try
            {
                this.pushBroker.RegisterAppleService(new ApplePushChannelSettings(appleCert, appleCertPwd));
            }
            catch (Exception ex)
            {
                this.loggerService.LogException("Register iOS notification service" + ex.Message);
            }
        }
开发者ID:fishonline,项目名称:API-1,代码行数:36,代码来源:PushService.cs


示例7: ContentViewModel

 protected ContentViewModel(AbstractWorkspace workspace, ICommandManager commandManager, ILoggerService logger)
 {
     _workspace = workspace;
     _commandManager = commandManager;
     _logger = logger;
     CloseCommand = new DelegateCommand(CloseDocument);
 }
开发者ID:vinodj,项目名称:Wide,代码行数:7,代码来源:ContentViewModel.cs


示例8: ErrorController

 public ErrorController(ILoggerService LoggerService)
 {
     if (LoggerService == null) {
         throw new ArgumentNullException("LoggerService");
     }
     this.loggerService = LoggerService;
 }
开发者ID:robrich,项目名称:BetaSigmaPhi,代码行数:7,代码来源:ErrorController.cs


示例9: PingTest

 public PingTest(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) 
     : base(logger, networkServices, fileAndFolderServices)
 {
     ActionName = "Ping Test";
     Description = "Runs a ping test against the device list.";
     Category = "Other";
 }
开发者ID:ZXeno,项目名称:Andromeda,代码行数:7,代码来源:PingTest.cs


示例10: ToDoItemListService

 public ToDoItemListService(IUnitOfWork uoW, IToDoItemListRepository rep, IToDoItemService itemService, ILoggerService logger)
 {
     _repository = rep;
     _unitOfWork = uoW;
     _toDoItemService = itemService;
     _loggerService = logger;
 }
开发者ID:kirill-vinnichek,项目名称:BerezovskyVinnichek.Wunderlist,代码行数:7,代码来源:ToDoItemListService.cs


示例11: UserController

        /// <summary>
        /// Initializes a new instance of the <see cref="UserController"/> class.
        /// </summary>
        /// <param name="loggerService">Logger Service</param>
        /// <param name="userService">User Service</param>
        /// <param name="tripService">Trip Service</param>
        /// <param name="postService">Post Service</param>
        public UserController(
            ILoggerService loggerService,
            IUserService userService,
            ITripService tripService,
            IPostService postService)
            : base(loggerService)
        {
            if(userService == null)
            {
                throw new ArgumentNullException("User Service, User Controller");
            }

            if (tripService == null)
            {
                throw new ArgumentNullException("Trip Service, User Controller");
            }

            if (postService == null)
            {
                throw new ArgumentNullException("Post Service, User Controller");
            }

            this.userService = userService;
            this.tripService = tripService;
            this.postService = postService;
        }
开发者ID:kiran94,项目名称:travelme,代码行数:33,代码来源:UserController.cs


示例12: ProjectVersionService

 public ProjectVersionService(IStore<Project> projectStore, IStore<ProjectVersion> projectVersionStore, IMappingEngine mapper, ILoggerService log)
 {
     ProjectStore = projectStore;
     ProjectVersionStore = projectVersionStore;
     Mapper = mapper;
     Log = log;
 }
开发者ID:hurtonypeter,项目名称:TestPlanner,代码行数:7,代码来源:ProjectVersionService.cs


示例13: TopicsService

 public TopicsService(ITopicsDataAccess da, IMessagesDataAccess messagesDa, ISearchService searchIndex, ILoggerService loggerService)
 {
     _dataAccess = da;
     _messagesDataAccess = messagesDa;
     _searchIndex = searchIndex;
     _loggerService = loggerService;
 }
开发者ID:ramiglez30,项目名称:Forum-Construnario,代码行数:7,代码来源:TopicsService.cs


示例14: GetParser

        public static Parser<DoNotAwaitAction> GetParser(
            int indentLevel,
            IAudioService audioService,
            IDelayService delayService,
            ILoggerService loggerService,
            ISpeechService speechService)
        {
            if (indentLevel < 0)
            {
                throw new ArgumentException("indentLevel must be greater than or equal to 0.", "indentLevel");
            }

            audioService.AssertNotNull(nameof(audioService));
            delayService.AssertNotNull(nameof(delayService));
            loggerService.AssertNotNull(nameof(loggerService));
            speechService.AssertNotNull(nameof(speechService));

            return
                from _ in Parse.IgnoreCase("don't")
                from __ in HorizontalWhitespaceParser.Parser.AtLeastOnce()
                from ___ in Parse.IgnoreCase("wait:")
                from ____ in VerticalSeparationParser.Parser.AtLeastOnce()
                from actions in ActionListParser.GetParser(indentLevel + 1, audioService, delayService, loggerService, speechService)
                let child = new SequenceAction(actions)
                select new DoNotAwaitAction(
                    loggerService,
                    child);
        }
开发者ID:reactiveui-forks,项目名称:WorkoutWotch,代码行数:28,代码来源:DoNotAwaitActionParser.cs


示例15: SccmScheduleActionBase

 protected SccmScheduleActionBase(ILoggerService logger, IWmiServices wmiService,
     ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
     : base(logger, networkServices, fileAndFolderServices)
 {
     WmiService = wmiService;
     SccmClientService = sccmClientService;
 }
开发者ID:ZXeno,项目名称:Andromeda,代码行数:7,代码来源:SccmScheduleActionBase.cs


示例16: YoufferContactService

 /// <summary>
 /// Initializes a new instance of the <see cref="YoufferContactService" /> class.
 /// </summary>
 /// <param name="loggerService"> The logger service. </param>
 /// <param name="contactLeadRepository"> The Contact Lead Repository. </param> 
 /// <param name="mapperFactory"> The mapper factory. </param> 
 /// <param name="appUser"> The ApplicationUser repository. </param>
 public YoufferContactService(ILoggerService loggerService, IRepository<ContactLeadMapping> contactLeadRepository, IMapperFactory mapperFactory, IRepository<ApplicationUser> appUser)
 {
     this.LoggerService = loggerService;
     this.contactLeadRepository = contactLeadRepository;
     this.mapperFactory = mapperFactory;
     this.appUser = appUser;
 }
开发者ID:fishonline,项目名称:API-1,代码行数:14,代码来源:YoufferContactService.cs


示例17: WebTestCurrentResultViewModel

 public WebTestCurrentResultViewModel(AbstractWorkspace workspace, ICommandManager commandManager, ILoggerService logger, IMenuService menuService, WebTestResultView view)
     : base(workspace, commandManager, logger, menuService)
 {
     _tooltip = "Web Test Results";
     _title = "Web Test Results";
     this.View = view;
 }
开发者ID:chandramouleswaran,项目名称:Hypertest,代码行数:7,代码来源:WebTestCurrentResultViewModel.cs


示例18: Exercise

        public Exercise(ILoggerService loggerService, ISpeechService speechService, string name, int setCount, int repetitionCount, IEnumerable<MatcherWithAction> matchersWithActions)
        {
            loggerService.AssertNotNull(nameof(loggerService));
            speechService.AssertNotNull(nameof(speechService));
            name.AssertNotNull(nameof(name));
            matchersWithActions.AssertNotNull(nameof(matchersWithActions));

            if (setCount < 0)
            {
                throw new ArgumentException("setCount cannot be less than zero.", "setCount");
            }

            if (repetitionCount < 0)
            {
                throw new ArgumentException("repetitionCount cannot be less than zero.", "repetitionCount");
            }

            this.logger = loggerService.GetLogger(this.GetType());
            this.speechService = speechService;
            this.name = name;
            this.setCount = setCount;
            this.repetitionCount = repetitionCount;
            this.matchersWithActions = matchersWithActions.ToImmutableList();

            using (var dummyExecutionContext = new ExecutionContext())
            {
                this.duration = this
                    .GetEventsWithActions(dummyExecutionContext)
                    .SelectMany(x => x.Actions)
                    .Select(x => x.Duration)
                    .DefaultIfEmpty()
                    .Aggregate((running, next) => running + next);
            }
        }
开发者ID:reactiveui-forks,项目名称:WorkoutWotch,代码行数:34,代码来源:Exercise.cs


示例19: UserController

 public UserController(IUserService userService, ICommunicationService communicationService, ILoggerService loggerService)
 {
     this.userService = userService;
     this.communicationService = communicationService;
     this.loggerService = loggerService;
     _repo = new AuthRepository();
 }
开发者ID:akhilchaudhari,项目名称:RedCabs,代码行数:7,代码来源:UserController.cs


示例20: UserPolicyRetrievalCycleSccm

 public UserPolicyRetrievalCycleSccm(ILoggerService logger, IWmiServices wmiService, ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) 
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName = "User Policy Retrieval Cycle";
     Description = "Forces SCCM to schedule a User Policy Retrieval check on the client.";
     Category = "SCCM";
 }
开发者ID:ZXeno,项目名称:Andromeda,代码行数:7,代码来源:UserPolicyRetrievalCycleSccm.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ILoggingService类代码示例发布时间:2022-05-24
下一篇:
C# ILoggerRepository类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap