Beispiel #1
0
 public FailureModeGroupMaintMethod(
     FailureModeGroupMaint Cdo,
     FailureModeGroupMaintMethods Method,
     FailureModeGroupMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus Freeze(
            FailureModeGroupMaint failureModeGroupMaint,
            FailureModeGroupMaint_Parameters parameters,
            FailureModeGroupMaint_Request request,
            out FailureModeGroupMaint_Result result)
        {
            result = (FailureModeGroupMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)failureModeGroupMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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