本文整理汇总了C#中ILogService类的典型用法代码示例。如果您正苦于以下问题:C# ILogService类的具体用法?C# ILogService怎么用?C# ILogService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ILogService类属于命名空间,在下文中一共展示了ILogService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FilesController
public FilesController(IFileSystemService fileSystemService, IUnitOfWorkFactory unitOfWorkFactory, ILogService logService, ICacheWrapper cacheWrapper)
{
_fileSystemService = fileSystemService;
_unitOfWorkFactory = unitOfWorkFactory;
_logService = logService;
_cacheWrapper = cacheWrapper;
}
示例2: OAuthClientHandlerService
public OAuthClientHandlerService ()
:base()
{
appContext = Application.Context;
tcs = new TaskCompletionSource<OAuthResult> ();
logger = ServiceFinder.Resolve<ILogService> ();
}
示例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));
}
示例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;
}
示例5: WorkPeriodService
public WorkPeriodService(IWorkPeriodDao workPeriodDao, IApplicationState applicationState, IApplicationStateSetter applicationStateSetter, ILogService logService)
{
_workPeriodDao = workPeriodDao;
_applicationState = applicationState;
_applicationStateSetter = applicationStateSetter;
_logService = logService;
}
示例6: NavigatorService
public NavigatorService(IEventAggregator eventAggregator, IUrlParameterToObjectsPlateHeater urlParameterToObjectsPlateHeater, ILogService logService, INotificationService notificationService)
{
_eventAggregator = eventAggregator;
this._notificationService = notificationService;
this._logService = logService;
_urlParameterToObjectsPlateHeater = urlParameterToObjectsPlateHeater;
}
示例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;
}
示例8: SiteCollectionController
public SiteCollectionController(ISiteTemplateService siteTemplateService,
ICreateRequestService createRequestService, ILogService logService)
{
_siteTemplateService = siteTemplateService;
_createRequestService = createRequestService;
_logService = logService;
}
示例9: ProgramSettingsManager
public ProgramSettingsManager(ISystemEnvironment systemEnvironment, ILogService logService,
IStorageService storageService)
{
_systemEnvironment = systemEnvironment;
_storageService = storageService;
_logService = logService;
}
示例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;
}
示例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>();
}
示例12: Initialize
public static void Initialize(ILogService logger)
{
if (logger == null)
throw new ArgumentNullException();
_logger = logger;
}
示例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;
}
示例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);
}
示例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));
}