Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I was wondering how to get the user who triggered the event?
protected override void ApplicationStarting( UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { base.ApplicationStarting(umbracoApplication, applicationContext); ContentService.SendingToPublish += Content_SendingToPublish; } private void Content_SendingToPublish(IContentService sender, SendToPublishEventArgs<IContent> e) { //How to get the user who triggered this? }
Thank you.
Hi Kin,
I believe you should be able to get the user via your e parameter.
e.Entity.WriterId will return the Id for the user that made the change.
Cheers,
Hywel
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
[ContentService] How to get the user who triggered the event?
Hello,
I was wondering how to get the user who triggered the event?
Thank you.
Hi Kin,
I believe you should be able to get the user via your e parameter.
e.Entity.WriterId will return the Id for the user that made the change.
Cheers,
Hywel
is working on a reply...