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

C# ILogService类代码示例

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

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



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

示例1: FilesController

 public FilesController(IFileSystemService fileSystemService, IUnitOfWorkFactory unitOfWorkFactory, ILogService logService, ICacheWrapper cacheWrapper)
 {
     _fileSystemService = fileSystemService;
     _unitOfWorkFactory = unitOfWorkFactory;
     _logService = logService;
     _cacheWrapper = cacheWrapper;
 }
开发者ID:altaricka,项目名称:vDesign,代码行数:7,代码来源:FilesController.cs


示例2: OAuthClientHandlerService

		public OAuthClientHandlerService ()
			:base()
		{
			appContext = Application.Context;
			tcs = new TaskCompletionSource<OAuthResult> ();
			logger = ServiceFinder.Resolve<ILogService> ();
		}
开发者ID:secondsun,项目名称:fh-dotnet-sdk,代码行数:7,代码来源:OAuthClientHandlerService.cs


示例3: BasicReportModule

        public BasicReportModule(IRegionManager regionManager, BasicReportView basicReportView,
            IWorkPeriodService workPeriodService, IPrinterService printerService, ICacheService cacheService,
            IInventoryService inventoryService, IUserService userService, IAutomationService automationService,
            IApplicationState applicationState, ILogService logService, ISettingService settingService)
            : base(regionManager, AppScreens.ReportView)
        {
            ReportContext.PrinterService = printerService;
            ReportContext.WorkPeriodService = workPeriodService;
            ReportContext.InventoryService = inventoryService;
            ReportContext.UserService = userService;
            ReportContext.ApplicationState = applicationState;
            ReportContext.CacheService = cacheService;
            ReportContext.LogService = logService;
            ReportContext.SettingService = settingService;

            _userService = userService;

            _regionManager = regionManager;
            _basicReportView = basicReportView;
            SetNavigationCommand(Resources.Reports, Resources.Common, "Images/Ppt.png", 60);

            PermissionRegistry.RegisterPermission(PermissionNames.OpenReports, PermissionCategories.Navigation, Resources.CanDisplayReports);
            PermissionRegistry.RegisterPermission(PermissionNames.ChangeReportDate, PermissionCategories.Report, Resources.CanChangeReportFilter);

            //todo refactor
            automationService.RegisterParameterSource("ReportName", () => ReportContext.Reports.Select(x => x.Header));

        }
开发者ID:GHLabs,项目名称:SambaPOS-3,代码行数:28,代码来源:BasicReportModule.cs


示例4: CreateLogController

 private LogController CreateLogController(ILogService logService)
 {
     var userService = new Mock<IUserService>();
     var mapper = new Mock<IMapperService>();
     var controller = new LogController(userService.Object, logService, mapper.Object);
     return controller;
 }
开发者ID:theriddlebrothers,项目名称:Honeypot,代码行数:7,代码来源:LogControllerTests.cs


示例5: WorkPeriodService

 public WorkPeriodService(IWorkPeriodDao workPeriodDao, IApplicationState applicationState, IApplicationStateSetter applicationStateSetter, ILogService logService)
 {
     _workPeriodDao = workPeriodDao;
     _applicationState = applicationState;
     _applicationStateSetter = applicationStateSetter;
     _logService = logService;
 }
开发者ID:GHLabs,项目名称:SambaPOS-3,代码行数:7,代码来源:WorkPeriodService.cs


示例6: NavigatorService

 public NavigatorService(IEventAggregator eventAggregator, IUrlParameterToObjectsPlateHeater urlParameterToObjectsPlateHeater, ILogService logService, INotificationService notificationService)
 {
     _eventAggregator = eventAggregator;
     this._notificationService = notificationService;
     this._logService = logService;
     _urlParameterToObjectsPlateHeater = urlParameterToObjectsPlateHeater;
 }
开发者ID:salfab,项目名称:open-syno,代码行数:7,代码来源:SearchView.xaml.cs


示例7: ImportService

 /// <summary>
 /// Initializes a new instance of the <see cref="ImportService"/> class.
 /// </summary>
 /// <param name="settingsService">
 /// Провайдер настроек
 /// </param>
 /// <param name="fileSystemService">
 /// Сервис файловой системы
 /// </param>
 /// <param name="logService">
 /// Сервис логирования
 /// </param>
 /// <param name="dateTimeService">
 /// Сервис даты/времени
 /// </param>
 public ImportService(IAlbumeSettingsService settingsService, IFileSystemService fileSystemService, ILogService logService, IDateTimeService dateTimeService)
 {
     this.settingsService = settingsService;
     this.fileSystemService = fileSystemService;
     this.logService = logService;
     this.dateTimeService = dateTimeService;
 }
开发者ID:aTEuCT,项目名称:PhotoManager,代码行数:22,代码来源:IImportService.cs


示例8: SiteCollectionController

 public SiteCollectionController(ISiteTemplateService siteTemplateService,
     ICreateRequestService createRequestService, ILogService logService)
 {
     _siteTemplateService = siteTemplateService;
     _createRequestService = createRequestService;
     _logService = logService;
 }
开发者ID:sogeti,项目名称:Site-provisioning,代码行数:7,代码来源:SiteCollectionController.cs


示例9: ProgramSettingsManager

 public ProgramSettingsManager(ISystemEnvironment systemEnvironment, ILogService logService,
     IStorageService storageService)
 {
     _systemEnvironment = systemEnvironment;
     _storageService = storageService;
     _logService = logService;
 }
开发者ID:Jusas,项目名称:DSImager,代码行数:7,代码来源:ProgramSettingsManager.cs


示例10: WizardPlugin

 public WizardPlugin(ILogService logger)
   : base(logger)
 {
   //we must have the highest merit to force display above all else
   DefaultMerit = (int)MeritLevel.Max;
   DefaultAssetGroup = WizardAssetGroup;
 }
开发者ID:erikzaadi,项目名称:atomsitethemes.erikzaadi.com,代码行数:7,代码来源:WizardPlugin.cs


示例11: App

        /// <summary>
        /// Constructor for the Application object.
        /// </summary>
        public App()
        {
            // Global handler for uncaught exceptions.
            UnhandledException += Application_UnhandledException;

            // Show graphics profiling information while debugging.
            if (System.Diagnostics.Debugger.IsAttached)
            {
                // Display the current frame rate counters.
                Application.Current.Host.Settings.EnableFrameRateCounter = true;

                // Show the areas of the app that are being redrawn in each frame.
                //Application.Current.Host.Settings.EnableRedrawRegions = true;

                // Enable non-production analysis visualization mode,
                // which shows areas of a page that are being GPU accelerated with a colored overlay.
                //Application.Current.Host.Settings.EnableCacheVisualization = true;
            }

            // Standard Silverlight initialization
            InitializeComponent();

            // App specific settings initialization
            InitializeSettings();

            // Phone-specific initialization
            InitializePhoneApplication();

            this._logService = IoC.Container.Get<ILogService>();
        }
开发者ID:salfab,项目名称:open-syno,代码行数:33,代码来源:App.xaml.cs


示例12: Initialize

        public static void Initialize(ILogService logger)
        {
            if (logger == null)
                throw new ArgumentNullException();

            _logger = logger;
        }
开发者ID:ermshiperete,项目名称:wakatime-sharp,代码行数:7,代码来源:Logger.cs


示例13: AudioRenderingService

        public AudioRenderingService(IAudioStationSession audioStationSession)
        {
            // todo : inject ?
            _logService = IoC.Container.Get<ILogService>();

            _logService.Trace("AudioRenderingService .ctor");
            if (audioStationSession == null)
            {
                throw new ArgumentNullException("audioStationSession");
            }
            _audioStationSession = audioStationSession;

            //_mediaElement = (MediaElement)Application.Current.Resources["MediaElement"];

            BufferPlayableHeuristicPredicate = (track, bytesLoaded) =>  bytesLoaded >= track.Bitrate||  bytesLoaded == track.Size;

            //_mediaElement.MediaFailed += MediaFailed;

            // TODO : Add error handling

            // TODO : Add position handling BackgroundAudioPlayer.Instance.Position
            // _mediaElement.SetBinding(MediaElement.PositionProperty, new Binding { Source = this, Mode = BindingMode.TwoWay, Path = new PropertyPath(PositionPropertyName)  });

            // todo : handle state changes
            // _mediaElement.CurrentStateChanged += OnCurrentStateChanged;

            //_mediaElement.MediaOpened += MediaOpened;

            // todo : handle end of track
            //_mediaElement.MediaEnded += PlayingMediaEnded;
        }
开发者ID:salfab,项目名称:open-syno,代码行数:31,代码来源:AudioRenderingService.cs


示例14: AppendLogService

        /// <summary>
        /// Appends the specified log service to a root log service (the current instance).
        /// </summary>
        /// <param name="logService">The log service.</param>
        /// <param name="additionalData">The optional additional data.</param>
        /// <returns>
        /// An implementation of <see cref="ILogLevelThresholdSelector"/> allowing to set a maximum log level to trace.
        /// </returns>
        public ILogLevelThresholdSelector AppendLogService(ILogService logService, IDictionary<string, object> additionalData = null)
        {
            if (logService == null) throw new ArgumentNullException("logService");

            if (RootLog4NetService == null) return null;
            return RootLog4NetService.AppendLogService(logService, additionalData);
        }
开发者ID:odalet,项目名称:Hawkeye2,代码行数:15,代码来源:Log4NetServiceFactory.cs


示例15: InventoryModule

        public InventoryModule(IRegionManager regionManager, ICacheService cacheService, IUserService userService, IInventoryService inventoryService,
            WarehouseInventoryView resourceInventoryView, WarehouseInventoryViewModel resourceInventoryViewModel, ILogService logService)
            : base(regionManager, AppScreens.InventoryView)
        {
            _regionManager = regionManager;
            _cacheService = cacheService;
            _userService = userService;
            _inventoryService = inventoryService;
            _warehouseInventoryView = resourceInventoryView;
            _warehouseInventoryViewModel = resourceInventoryViewModel;
            _logService = logService;

            AddDashboardCommand<EntityCollectionViewModelBase<WarehouseTypeViewModel, WarehouseType>>(Resources.WarehouseType.ToPlural(), Resources.Inventory, 35);
            AddDashboardCommand<EntityCollectionViewModelBase<WarehouseViewModel, Warehouse>>(Resources.Warehouse.ToPlural(), Resources.Inventory, 35);
            AddDashboardCommand<EntityCollectionViewModelBase<TransactionTypeViewModel, InventoryTransactionType>>(Resources.TransactionType.ToPlural(), Resources.Inventory, 35);
            AddDashboardCommand<EntityCollectionViewModelBase<TransactionDocumentTypeViewModel, InventoryTransactionDocumentType>>(Resources.DocumentType.ToPlural(), Resources.Inventory, 35);
            AddDashboardCommand<TransactionDocumentListViewModel>(Resources.Transaction.ToPlural(), Resources.Inventory, 35);

            AddDashboardCommand<EntityCollectionViewModelBase<InventoryItemViewModel, InventoryItem>>(Resources.InventoryItems, Resources.Inventory, 35);
            AddDashboardCommand<RecipeListViewModel>(Resources.Recipes, Resources.Inventory, 35);
            AddDashboardCommand<PeriodicConsumptionListViewModel>(Resources.EndOfDayRecords, Resources.Inventory, 36);

            SetNavigationCommand(Resources.Warehouses, Resources.Common, "Images/box.png", 40);

            EventServiceFactory.EventService.GetEvent<GenericEvent<Entity>>().Subscribe(OnResourceEvent);
            EventServiceFactory.EventService.GetEvent<GenericEvent<Warehouse>>().Subscribe(OnWarehouseEvent);

            PermissionRegistry.RegisterPermission(PermissionNames.OpenInventory, PermissionCategories.Navigation, string.Format(Resources.CanNavigate_f, Resources.Inventory));
        }
开发者ID:GHLabs,项目名称:SambaPOS-3,代码行数:29,代码来源:InventoryModule.cs


示例16: LogController

 public LogController(IUserService userService,
     ILogService logService,
     IMapperService mapper)
     : base(userService, logService)
 {
     _mapper = mapper;
 }
开发者ID:theriddlebrothers,项目名称:Honeypot,代码行数:7,代码来源:LogController.cs


示例17: DataController

        /// <summary>
        /// Public constructor to initialize product service instance
        /// </summary>

        public DataController(
            ILogUnitOfWorkAsync unitOfWorkAsync,
            ILogService LogService)
       {
            _unitOfWorkAsync = unitOfWorkAsync;
            _LogService = LogService;
        }
开发者ID:psws,项目名称:logqso.mvc,代码行数:11,代码来源:DataController.cs


示例18: AssetService

 public AssetService(IAppServiceRepository svcRepo, IThemeService themeSvc, ILogService logSvc)
 {
   AppServiceRepository = svcRepo;
   ThemeService = themeSvc;
   LogService = logSvc;
   Assets = new Collection<Asset>();
 }
开发者ID:erikzaadi,项目名称:atomsitethemes.erikzaadi.com,代码行数:7,代码来源:AssetService.cs


示例19: NoteController

        public NoteController(INoteService noteService, IUserService userService
 , ILogService logService
            )
            : base(userService, logService)
        {
            this.serviceNote = noteService;
        }
开发者ID:jrocket,项目名称:MOG,代码行数:7,代码来源:NoteController.cs


示例20: FollowController

 public FollowController(IFollowService followService, IUserService userService
     , ILogService logService
     )
     : base(userService, logService)
 {
     this.serviceFollow = followService;
 }
开发者ID:jrocket,项目名称:MOG,代码行数:7,代码来源:FollowController.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# ILogWriter类代码示例发布时间:2022-05-24
下一篇:
C# ILogProvider类代码示例发布时间: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