本文整理汇总了C#中ILoggingService类的典型用法代码示例。如果您正苦于以下问题:C# ILoggingService类的具体用法?C# ILoggingService怎么用?C# ILoggingService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ILoggingService类属于命名空间,在下文中一共展示了ILoggingService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: SessionViewModel
public SessionViewModel(IEventAggregator eventAggregator, IWindowManager windowManager, ILoggingService loggingService)
{
EventAggregator = eventAggregator;
//EventAggregator.Publish(new NavigationEvent { PageNavigatedTo = "SessionView" });
_windowManager = windowManager;
_loggingService = loggingService;
MessageBox = new StandardMessageBox();
if (!DesignerProperties.IsInDesignTool)
{
LoadOperation lo = context.Load(context.GetSponsorswithAllPropertiesQuery(App.Event.Id));
lo.Completed += delegate
{
TrackList = context.Tracks;
if (lo.HasError)
{
ErrorWindow.CreateNew(lo.Error.Message);
_loggingService.LogException(lo.Error);
}
};
}
else
{
}
}
开发者ID:onetug,项目名称:CodeCamp2011,代码行数:25,代码来源:SessionViewModel.cs
示例2: AccountService
public AccountService(ILoggingService loggingService, IAccountRepository accountRepository,
ISharedHelper helper)
{
_loggingService = loggingService;
_accountRepository = accountRepository;
_helper = helper;
}
开发者ID:khats,项目名称:Coffee,代码行数:7,代码来源:AccountService.cs
示例3: ScreenshotCefClient
public ScreenshotCefClient(ScreenshotCore core, int width, int height, ILoggingService loggingService)
{
this.lifeSpanHandler = new WebLifeSpanHandler(core);
this.loadHandler = new WebLoadHandler(core);
this.renderHandler = new ScreenshotRenderHandler(core, width, height);
this.loggingService = loggingService;
}
开发者ID:axle-h,项目名称:Axh.PageTracker,代码行数:7,代码来源:ScreenshotCefClient.cs
示例4: SitemapService
/// <summary>
/// Initializes a new instance of the <see cref="SitemapService"/> class.
/// </summary>
/// <param name="loggingService">The logging service.</param>
/// <param name="urlHelper">The URL helper.</param>
public SitemapService(
ILoggingService loggingService,
UrlHelper urlHelper)
{
this.loggingService = loggingService;
this.urlHelper = urlHelper;
}
开发者ID:lawoollett,项目名称:VentureSketch,代码行数:12,代码来源:SitemapService.cs
示例5: MembershipService
/// <summary>
/// Constructor
/// </summary>
/// <param name="membershipRepository"> </param>
/// <param name="settingsRepository"> </param>
/// <param name="emailService"> </param>
/// <param name="localizationService"> </param>
/// <param name="activityService"> </param>
/// <param name="privateMessageService"> </param>
/// <param name="membershipUserPointsService"> </param>
/// <param name="topicNotificationService"> </param>
/// <param name="voteService"> </param>
/// <param name="badgeService"> </param>
/// <param name="categoryNotificationService"> </param>
/// <param name="loggingService"></param>
/// <param name="uploadedFileService"></param>
/// <param name="postRepository"></param>
/// <param name="pollVoteRepository"></param>
/// <param name="pollAnswerRepository"></param>
/// <param name="pollRepository"></param>
/// <param name="topicRepository"></param>
/// <param name="favouriteRepository"></param>
/// <param name="categoryService"></param>
public MembershipService(IMembershipRepository membershipRepository, ISettingsRepository settingsRepository,
IEmailService emailService, ILocalizationService localizationService, IActivityService activityService,
IPrivateMessageService privateMessageService, IMembershipUserPointsService membershipUserPointsService,
ITopicNotificationService topicNotificationService, IVoteService voteService, IBadgeService badgeService,
ICategoryNotificationService categoryNotificationService, ILoggingService loggingService, IUploadedFileService uploadedFileService,
IPostRepository postRepository, IPollVoteRepository pollVoteRepository, IPollAnswerRepository pollAnswerRepository,
IPollRepository pollRepository, ITopicRepository topicRepository, IFavouriteRepository favouriteRepository,
ICategoryService categoryService)
{
_membershipRepository = membershipRepository;
_settingsRepository = settingsRepository;
_emailService = emailService;
_localizationService = localizationService;
_activityService = activityService;
_privateMessageService = privateMessageService;
_membershipUserPointsService = membershipUserPointsService;
_topicNotificationService = topicNotificationService;
_voteService = voteService;
_badgeService = badgeService;
_categoryNotificationService = categoryNotificationService;
_loggingService = loggingService;
_uploadedFileService = uploadedFileService;
_postRepository = postRepository;
_pollVoteRepository = pollVoteRepository;
_pollAnswerRepository = pollAnswerRepository;
_pollRepository = pollRepository;
_topicRepository = topicRepository;
_favouriteRepository = favouriteRepository;
_categoryService = categoryService;
}
开发者ID:petemidge,项目名称:mvcforum,代码行数:53,代码来源:MembershipService.cs
示例6: ToolsController
public ToolsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IUserService userService,
ISettingsService settingsService,
ILocalizationService localizationService,
IRoleService roleService)
: base(loggingService, unitOfWorkManager, userService, settingsService, localizationService)
{
}
开发者ID:h2h,项目名称:CandyBBS,代码行数:7,代码来源:ToolsController.cs
示例7: AssemblyResourceStore
internal AssemblyResourceStore(Type evidence)
{
this.evidence = evidence;
logger = Initializer.Instance.WindsorContainer.Resolve<ILoggingService>();
_isoFile = IsolatedStorageFile.GetMachineStoreForAssembly();
_backingFile = new IsolatedStorageFileStream(evidence.Assembly.GetName().Name, FileMode.OpenOrCreate, _isoFile);
if (_backingFile.Length > 0)
{
try
{
var formatter = new BinaryFormatter();
store = (Dictionary<string, object>)formatter.Deserialize(_backingFile);
}
catch (Exception ex)
{
logger.Log(Common.LogLevel.Error, string.Format("Error deserializing resource store for {0}. Resetting resource store.", evidence.Assembly.GetName().Name));
logger.Log(Common.LogLevel.Debug, string.Format("Deserialize error: {0}", ex.Message));
store = new Dictionary<string, object>();
}
}
else
{
store = new Dictionary<string, object>();
}
}
开发者ID:bartsipes,项目名称:ElementSuite,代码行数:25,代码来源:AssemblyResourceStore.cs
示例8: OnInitialized
protected override void OnInitialized(EventArgs e)
{
base.OnInitialized(e);
//this.Style = this.TryFindResource(typeof(TextBox)) as Style;
this.loggingService = (ILoggingService)this.serviceProvider.GetService(typeof(ILoggingService));
if (this.loggingService == null)
{
this.Text = "ERROR: Unable to get logging service; no output available.";
}
else
{
// Every output view gets its own text (and starts with what has accumulated so far, so they're all equal).
this.Text = this.loggingService.AccumulatedLog;
if (this.IsLoaded)
{
OnLoaded(this, null);
}
else
{
this.Loaded += OnLoaded;
}
this.loggingService.MessageLogged += OnMessageLogged;
}
}
开发者ID:UnaNancyOwen,项目名称:Kinect-Studio-Sample,代码行数:26,代码来源:OutputView.cs
示例9: FileController
public FileController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, IUploadedFileService uploadedFileService, ICategoryService categoryService, ICacheService cacheService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
{
_uploadedFileService = uploadedFileService;
_categoryService = categoryService;
}
开发者ID:lenwen,项目名称:mvcforum,代码行数:7,代码来源:FileController.cs
示例10: CombinerResponseStream
public CombinerResponseStream(
Stream responseStream,
bool combineJs,
bool combineCss,
bool minifyJs,
bool minifyCss,
bool versionOnly,
bool prependCdnHostToImages,
string jsVersion,
string cssVersion,
string sharedVersion,
int ieVersion,
string requestedUrl,
ICombinerService combinerService,
ILoggingService loggingService,
string combinedResourcesUrl,
string cdnHostToPrepend)
: base(responseStream)
{
_combineJs = combineJs;
_combineCss = combineCss;
_minifyJs = minifyJs;
_minifyCss = minifyCss;
_versionOnly = versionOnly;
_jsVersion = jsVersion;
_cssVersion = cssVersion;
_sharedVersion = sharedVersion;
_ieVersion = ieVersion;
_requestedUrl = requestedUrl;
_combinerService = combinerService;
_logger = loggingService;
_combinedResourcesUrl = combinedResourcesUrl;
_prependCdnHostToImages = prependCdnHostToImages;
_cdnHostToPrepend = cdnHostToPrepend;
}
开发者ID:jalva,项目名称:JsAndCssCombiner,代码行数:35,代码来源:CombinerResponseStream.cs
示例11: JustGivingService
public JustGivingService(IHttpClient httpClient, ILoggingService loggingService, string apiKey, string endPoint, int charityId)
{
_httpClient = httpClient;
_loggingService = loggingService;
_endPoint = string.Format("{0}{1}/v1/", endPoint, apiKey);
_charityId = charityId;
}
开发者ID:robertpurcell,项目名称:UmbracoSandbox,代码行数:7,代码来源:JustGivingService.cs
示例12: ProductService
public ProductService(
IProductRepository productRepository,
ICacheStorage cacheStorage,
IConfigurationRepository configurationRepository,
ILoggingService loggingService)
{
if (productRepository == null)
{
throw new ArgumentNullException("ProductRepository");
}
if (cacheStorage == null)
{
throw new ArgumentNullException("CacheStorage");
}
if (configurationRepository == null)
{
throw new ArgumentException("Configuration");
}
if (loggingService == null)
{
throw new ArgumentException("Logging");
}
this._productRepository = productRepository;
this._cacheStorage = cacheStorage;
this._configurationRepository = configurationRepository;
this._loggingService = loggingService;
}
开发者ID:richardkundl,项目名称:SampleDI-IoC,代码行数:31,代码来源:ProductService.cs
示例13: AzureTentQueues
public AzureTentQueues(IGeneralConfiguration configuration,
IJsonHelpers jsonHelpers,
ITaskHelpers taskHelpers,
ILoggingService loggingService)
{
Ensure.Argument.IsNotNull(configuration, nameof(configuration));
Ensure.Argument.IsNotNull(jsonHelpers, nameof(jsonHelpers));
Ensure.Argument.IsNotNull(taskHelpers, nameof(taskHelpers));
Ensure.Argument.IsNotNull(loggingService, nameof(loggingService));
this.taskHelpers = taskHelpers;
this.loggingService = loggingService;
// Create the storage account from the connection string, and the corresponding client.
var queuesStorageAccount = CloudStorageAccount.Parse(configuration.AzureQueuesConnectionString);
var queuesClient = queuesStorageAccount.CreateCloudQueueClient();
// Create the queues references.
this.mentionsQueue = queuesClient.GetQueueReference("mentions");
this.subscriptionsQueue = queuesClient.GetQueueReference("subscriptions");
this.appNotificationQueue = queuesClient.GetQueueReference("appnotifications");
this.metaSubscriptionQueue = queuesClient.GetQueueReference("metasubscriptions");
this.retryQueue = queuesClient.GetQueueReference("retries");
// Create the IQueue objects.
this.Mentions = new AzureQueue<QueueMentionMessage>(this.mentionsQueue, jsonHelpers);
this.Subscriptions = new AzureQueue<QueueSubscriptionMessage>(this.subscriptionsQueue, jsonHelpers);
this.AppNotifications = new AzureQueue<QueueAppNotificationMessage>(this.appNotificationQueue, jsonHelpers);
this.MetaSubscriptions = new AzureQueue<QueueMetaSubscriptionMessage>(this.metaSubscriptionQueue, jsonHelpers);
this.Retries = new AzureQueue<QueueRetryMessage>(this.retryQueue, jsonHelpers);
// Create the initializer for this component.
this.initializer = new TaskRunner(this.InitializeOnceAsync);
}
开发者ID:Campr,项目名称:Server,代码行数:34,代码来源:AzureTentQueues.cs
示例14: SnippetsController
public SnippetsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService,
IMembershipUserPointsService membershipUserPointsService, ICacheService cacheService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
{
_membershipUserPointsService = membershipUserPointsService;
}
开发者ID:lenwen,项目名称:mvcforum,代码行数:7,代码来源:SnippetsController.cs
示例15: SystemNetEmailService
public SystemNetEmailService(IConfigurationRepository configurationRepository, ILoggingService loggingService)
{
if (configurationRepository == null) throw new ArgumentNullException("ConfigurationRepository");
if (loggingService == null) throw new ArgumentNullException("LoggingService");
_configurationRepository = configurationRepository;
_loggingService = loggingService;
}
开发者ID:FCMA-OSS,项目名称:RewardRecognition,代码行数:7,代码来源:SystemNetEmailService.cs
示例16: SendToJustGiving
public SendToJustGiving()
{
Id = new Guid("b63f089f-6a6c-4f0b-9a7a-cd3249175595");
Name = "Send to Just Giving";
Description = "This workflow will post the user form data to Just Giving.";
_loggingService = NinjectWebCommon.Kernel.GetService<ILoggingService>();
}
开发者ID:robertpurcell,项目名称:UmbracoSandbox,代码行数:7,代码来源:SendToJustGiving.cs
示例17: TagController
public TagController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicTagService topicTagService, ICategoryService categoryService, ICacheService cacheService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
{
_topicTagService = topicTagService;
_categoryService = categoryService;
_cacheService = cacheService;
}
开发者ID:huchao007,项目名称:mvcforum,代码行数:7,代码来源:TagController.cs
示例18: MembershipService
/// <summary>
/// Constructor
/// </summary>
/// <param name="context"></param>
/// <param name="settingsService"> </param>
/// <param name="emailService"> </param>
/// <param name="localizationService"> </param>
/// <param name="activityService"> </param>
/// <param name="privateMessageService"> </param>
/// <param name="membershipUserPointsService"> </param>
/// <param name="topicNotificationService"> </param>
/// <param name="voteService"> </param>
/// <param name="badgeService"> </param>
/// <param name="categoryNotificationService"> </param>
/// <param name="loggingService"></param>
/// <param name="uploadedFileService"></param>
/// <param name="postService"></param>
/// <param name="pollVoteService"></param>
/// <param name="pollAnswerService"></param>
/// <param name="pollService"></param>
/// <param name="topicService"></param>
/// <param name="favouriteService"></param>
/// <param name="categoryService"></param>
public MembershipService(IMVCForumContext context, ISettingsService settingsService,
IEmailService emailService, ILocalizationService localizationService, IActivityService activityService,
IPrivateMessageService privateMessageService, IMembershipUserPointsService membershipUserPointsService,
ITopicNotificationService topicNotificationService, IVoteService voteService, IBadgeService badgeService,
ICategoryNotificationService categoryNotificationService, ILoggingService loggingService, IUploadedFileService uploadedFileService,
IPostService postService, IPollVoteService pollVoteService, IPollAnswerService pollAnswerService,
IPollService pollService, ITopicService topicService, IFavouriteService favouriteService,
ICategoryService categoryService, IPostEditService postEditService)
{
_settingsService = settingsService;
_emailService = emailService;
_localizationService = localizationService;
_activityService = activityService;
_privateMessageService = privateMessageService;
_membershipUserPointsService = membershipUserPointsService;
_topicNotificationService = topicNotificationService;
_voteService = voteService;
_badgeService = badgeService;
_categoryNotificationService = categoryNotificationService;
_loggingService = loggingService;
_uploadedFileService = uploadedFileService;
_postService = postService;
_pollVoteService = pollVoteService;
_pollAnswerService = pollAnswerService;
_pollService = pollService;
_topicService = topicService;
_favouriteService = favouriteService;
_categoryService = categoryService;
_postEditService = postEditService;
_context = context as MVCForumContext;
}
开发者ID:flerka,项目名称:mvcforum,代码行数:54,代码来源:MembershipService.cs
示例19: ActivityService
/// <summary>
/// Constructor
/// </summary>
/// <param name="activityRepository"> </param>
/// <param name="badgeRepository"> </param>
/// <param name="membershipRepository"> </param>
/// <param name="loggingService"> </param>
public ActivityService(IActivityRepository activityRepository, IBadgeRepository badgeRepository, IMembershipRepository membershipRepository, ILoggingService loggingService)
{
_activityRepository = activityRepository;
_badgeRepository = badgeRepository;
_loggingService = loggingService;
_membershipRepository = membershipRepository;
}
开发者ID:huchao007,项目名称:mvcforum,代码行数:14,代码来源:ActivityService.cs
示例20: StatsController
public StatsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicService topicService, IPostService postService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
{
_topicService = topicService;
_postService = postService;
}
开发者ID:kangjh0815,项目名称:test,代码行数:7,代码来源:StatsController.cs
注:本文中的ILoggingService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论