Exemplo n.º 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();
     }
 }
Exemplo n.º 2
0
 protected virtual void Child_OnDataPortalException(DataPortalEventArgs e, Exception ex)
 {
 }
Exemplo n.º 3
0
 protected virtual void Child_OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
 }
Exemplo n.º 4
0
 protected virtual void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e)
 {
 }
Exemplo n.º 5
0
 void Csla.Server.IDataPortalTarget.Child_OnDataPortalException(DataPortalEventArgs e, Exception ex)
 {
     this.Child_OnDataPortalException(e, ex);
 }
Exemplo n.º 6
0
 void Csla.Server.IDataPortalTarget.Child_OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
     this.Child_OnDataPortalInvokeComplete(e);
 }
Exemplo n.º 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);
 }
Exemplo n.º 8
0
 private void OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
     Csla.ApplicationContext.GlobalContext["ClientInvokeComplete"] = ApplicationContext.GlobalContext["global"];
 }
Exemplo n.º 9
0
 void IDataPortalTarget.DataPortal_OnDataPortalException(DataPortalEventArgs e, Exception ex)
 {
     this.DataPortal_OnDataPortalException(e, ex);
 }
Exemplo n.º 10
0
 void Csla.Server.IDataPortalTarget.Child_OnDataPortalInvoke(DataPortalEventArgs e)
 {
 }
Exemplo n.º 11
0
 internal static void OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
     DataPortalInvokeComplete?.Invoke(e);
 }
Exemplo n.º 12
0
 void IDataPortalTarget.Child_OnDataPortalException(DataPortalEventArgs e, Exception ex)
 {
 }
Exemplo n.º 13
0
 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);
 }
Exemplo n.º 16
0
 void IDataPortalTarget.DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e)
 {
     this.DataPortal_OnDataPortalInvokeComplete(e);
 }
Exemplo n.º 17
0
        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);
        }
Exemplo n.º 18
0
 void IDataPortalTarget.Child_OnDataPortalInvoke(DataPortalEventArgs e)
 {
     this.Child_OnDataPortalInvoke(e);
 }
Exemplo n.º 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();
			}
		}