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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
[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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.