Example #1
0
 public DelegationTaskMaintMethod(
     DelegationTaskMaint Cdo,
     DelegationTaskMaintMethods Method,
     DelegationTaskMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Example #2
0
        public ResultStatus Freeze(
            DelegationTaskMaint delegationTaskMaint,
            DelegationTaskMaint_Parameters parameters,
            DelegationTaskMaint_Request request,
            out DelegationTaskMaint_Result result)
        {
            result = (DelegationTaskMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)delegationTaskMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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