protected virtual void OnMyEvent(object sender, EventArgs args) { var s1 = Sitecore.Events.Event.ExtractParameter <string>(args, 0); var e = new MyEventRemote() { Param1 = s1 }; Sitecore.Eventing.EventManager.QueueEvent <MyEventRemote>(e); Sitecore.Diagnostics.Log.Info("============================Events from CD triggered==========================", this); Sitecore.Context.Database.Properties["RemoteEventRaisedCustom"] = "Hi Remote event raised from CD"; }
private void RaiseRemoteEvent(MyEventRemote myEvent) { Sitecore.Events.Event.RaiseEvent("testing:myevent:remote", new object[] { myEvent.Param1 }); Sitecore.Diagnostics.Log.Info("============================Events from CM triggered==========================", this); }