/// <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(); } }
protected virtual void Child_OnDataPortalException(DataPortalEventArgs e, Exception ex) { }
protected virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e) { }
protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e) { }
void Csla.Server.IDataPortalTarget.Child_OnDataPortalException(DataPortalEventArgs e, Exception ex) { this.Child_OnDataPortalException(e, ex); }
void Csla.Server.IDataPortalTarget.Child_OnDataPortalInvokeComplete(DataPortalEventArgs e) { this.Child_OnDataPortalInvokeComplete(e); }
/// <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); }
private void OnDataPortalInvokeComplete(DataPortalEventArgs e) { Csla.ApplicationContext.GlobalContext["ClientInvokeComplete"] = ApplicationContext.GlobalContext["global"]; }
void IDataPortalTarget.DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex) { this.DataPortal_OnDataPortalException(e, ex); }
void Csla.Server.IDataPortalTarget.Child_OnDataPortalInvoke(DataPortalEventArgs e) { }
internal static void OnDataPortalInvokeComplete(DataPortalEventArgs e) { DataPortalInvokeComplete?.Invoke(e); }
void IDataPortalTarget.Child_OnDataPortalException(DataPortalEventArgs e, Exception ex) { }
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); }
void IDataPortalTarget.DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e) { this.DataPortal_OnDataPortalInvokeComplete(e); }
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); }
void IDataPortalTarget.Child_OnDataPortalInvoke(DataPortalEventArgs e) { this.Child_OnDataPortalInvoke(e); }
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(); } }