public void CustomOnPostDerive(ObjectOnPostDerive method) { if (this.Counter % 2 == 0) { method.Derivation.Mark(this); } }
public static void BaseOnPostDerive(this Transitional @this, ObjectOnPostDerive method) { if (@this.CurrentObjectState != null && [email protected](@this.LastObjectState)) { @this.PreviousObjectState = @this.LastObjectState; } @this.LastObjectState = @this.CurrentObjectState; }
public static void BaseOnPostDerive(this Transitional @this, ObjectOnPostDerive method) { if (@this.CurrentObjectState != null && [email protected](@this.LastObjectState)) { @this.PreviousObjectState = @this.LastObjectState; } @this.LastObjectState = @this.CurrentObjectState; @this.DeniedPermissions = @this.CurrentObjectState?.DeniedPermissions; }