예제 #1
0
 /// <summary>
 /// Called by the server-side DataPortal after calling the requested DataPortal_XYZ method.
 /// </summary>
 /// <param name="e">The DataPortalContext object passed to the DataPortal.</param>
 protected override void DataPortal_OnDataPortalInvokeComplete(Csla.DataPortalEventArgs e)
 {
     if (ApplicationContext.ExecutionLocation == ApplicationContext.ExecutionLocations.Server &&
         e.Operation == DataPortalOperations.Update)
     {
         // this runs on the server
         ProductTypeCachedNVL.InvalidateCache();
     }
 }
예제 #2
0
 protected virtual void Child_OnDataPortalException(DataPortalEventArgs e, Exception ex)
 {
 }
예제 #3
0
 protected virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
 }
예제 #4
0
 protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e)
 {
 }
예제 #5
0
 void Csla.Server.IDataPortalTarget.Child_OnDataPortalException(DataPortalEventArgs e, Exception ex)
 {
     this.Child_OnDataPortalException(e, ex);
 }
예제 #6
0
 void Csla.Server.IDataPortalTarget.Child_OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
     this.Child_OnDataPortalInvokeComplete(e);
 }
예제 #7
0
 /// <summary>
 /// Called by the server-side DataPortal prior to calling the requested DataPortal_XYZ method.
 /// Setter injection is performed before the object is returned to the caller.
 /// </summary>
 /// <param name="e">The DataPortalContext object passed to the DataPortal.</param>
 protected override void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e)
 {
     Registry.BuildUp(this);
     base.DataPortal_OnDataPortalInvoke(e);
 }
예제 #8
0
 private void OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
     Csla.ApplicationContext.GlobalContext["ClientInvokeComplete"] = ApplicationContext.GlobalContext["global"];
 }
예제 #9
0
 void IDataPortalTarget.DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex)
 {
     this.DataPortal_OnDataPortalException(e, ex);
 }
예제 #10
0
 void Csla.Server.IDataPortalTarget.Child_OnDataPortalInvoke(DataPortalEventArgs e)
 {
 }
예제 #11
0
파일: DataPortal.cs 프로젝트: brunck/csla
 internal static void OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
     DataPortalInvokeComplete?.Invoke(e);
 }
예제 #12
0
파일: CommandBase.cs 프로젝트: uzigula/csla
 void IDataPortalTarget.Child_OnDataPortalException(DataPortalEventArgs e, Exception ex)
 {
 }
예제 #13
0
파일: CommandBase.cs 프로젝트: uzigula/csla
 void IDataPortalTarget.Child_OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
 }
 /// <summary>
 /// Called by the server-side DataPortal if an exception
 /// occurs during data access.
 /// </summary>
 /// <param name="e">The DataPortalContext object passed to the DataPortal.</param>
 /// <param name="ex">The Exception thrown during data access.</param>
 protected override void DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex)
 {
   Trace.TraceError("DataPortalException object:{0}, operation:{1}, exception:{2}", e.ObjectType, e.Operation, ex);
   base.DataPortal_OnDataPortalException(e, ex);
 }
 /// <summary>
 /// Called by the server-side DataPortal after calling the
 /// requested DataPortal_XYZ method.
 /// </summary>
 /// <param name="e">The DataPortalContext object passed to the DataPortal.</param>
 protected override void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
   Trace.TraceInformation("DataPortalInvokeCompleted object:{0}, operation:{1}", e.ObjectType, e.Operation);
   base.DataPortal_OnDataPortalInvokeComplete(e);
 }
예제 #16
0
 void IDataPortalTarget.DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
     this.DataPortal_OnDataPortalInvokeComplete(e);
 }
예제 #17
0
파일: Ticket.cs 프로젝트: drewjst/Risque
        protected override void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e)
        {
            if (e.Operation == DataPortalOperations.Create)
            {
                this.ModifiedBy = RisqueContext.CurrentUser.Identification;
                this.ModifiedDate = DateTime.Now;

                this.CreatedBy = RisqueContext.CurrentUser.Identification;
                this.CreatedDate = DateTime.Now;
            }
            else if (e.Operation == DataPortalOperations.Update)
            {
                this.ModifiedBy = RisqueContext.CurrentUser.Identification;
                this.ModifiedDate = DateTime.Now;
            }

            base.DataPortal_OnDataPortalInvoke(e);
        }
예제 #18
0
 void IDataPortalTarget.Child_OnDataPortalInvoke(DataPortalEventArgs e)
 {
     this.Child_OnDataPortalInvoke(e);
 }
예제 #19
0
 void Csla.Server.IDataPortalTarget.DataPortal_OnDataPortalInvoke(DataPortalEventArgs e)
 {
     this.DataPortal_OnDataPortalInvoke(e);
 }
		protected override void DataPortal_OnDataPortalInvokeComplete(
			DataPortalEventArgs e)
		{
			if (ApplicationContext.ExecutionLocation ==
			    ApplicationContext.ExecutionLocations.Server)
			{
				// this runs on the server and invalidates
				// the RoleList cache
				RoleList.InvalidateCache();
			}
		}