예제 #1
0
파일: RemoteEvent.cs 프로젝트: Nelsjnjr/MVC
        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";
        }
예제 #2
0
파일: RemoteEvent.cs 프로젝트: Nelsjnjr/MVC
 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);
 }