本文整理汇总了C#中ILoggerService类的典型用法代码示例。如果您正苦于以下问题:C# ILoggerService类的具体用法?C# ILoggerService怎么用?C# ILoggerService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ILoggerService类属于命名空间,在下文中一共展示了ILoggerService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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";
}
示例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";
}
示例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;
}
示例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;
}
示例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";
}
示例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);
}
}
示例7: ContentViewModel
protected ContentViewModel(AbstractWorkspace workspace, ICommandManager commandManager, ILoggerService logger)
{
_workspace = workspace;
_commandManager = commandManager;
_logger = logger;
CloseCommand = new DelegateCommand(CloseDocument);
}
示例8: ErrorController
public ErrorController(ILoggerService LoggerService)
{
if (LoggerService == null) {
throw new ArgumentNullException("LoggerService");
}
this.loggerService = LoggerService;
}
示例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";
}
示例10: ToDoItemListService
public ToDoItemListService(IUnitOfWork uoW, IToDoItemListRepository rep, IToDoItemService itemService, ILoggerService logger)
{
_repository = rep;
_unitOfWork = uoW;
_toDoItemService = itemService;
_loggerService = logger;
}
示例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;
}
示例12: ProjectVersionService
public ProjectVersionService(IStore<Project> projectStore, IStore<ProjectVersion> projectVersionStore, IMappingEngine mapper, ILoggerService log)
{
ProjectStore = projectStore;
ProjectVersionStore = projectVersionStore;
Mapper = mapper;
Log = log;
}
示例13: TopicsService
public TopicsService(ITopicsDataAccess da, IMessagesDataAccess messagesDa, ISearchService searchIndex, ILoggerService loggerService)
{
_dataAccess = da;
_messagesDataAccess = messagesDa;
_searchIndex = searchIndex;
_loggerService = loggerService;
}
示例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);
}
示例15: SccmScheduleActionBase
protected SccmScheduleActionBase(ILoggerService logger, IWmiServices wmiService,
ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
: base(logger, networkServices, fileAndFolderServices)
{
WmiService = wmiService;
SccmClientService = sccmClientService;
}