Beispiel #1
0
 public ProcessTimerTypeMaintMethod(
     ProcessTimerTypeMaint Cdo,
     ProcessTimerTypeMaintMethods Method,
     ProcessTimerTypeMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus Freeze(
            ProcessTimerTypeMaint processTimerTypeMaint,
            ProcessTimerTypeMaint_Parameters parameters,
            ProcessTimerTypeMaint_Request request,
            out ProcessTimerTypeMaint_Result result)
        {
            result = (ProcessTimerTypeMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)processTimerTypeMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IProcessTimerTypeMaintService)this._Channel).Freeze(this._UserProfile, processTimerTypeMaint, parameters, request, out result) : this.AddMethod((Method) new ProcessTimerTypeMaintMethod(processTimerTypeMaint, ProcessTimerTypeMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)processTimerTypeMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }