Пример #1
0
 public UserQueryMaintMethod(
     UserQueryMaint Cdo,
     UserQueryMaintMethods Method,
     UserQueryMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Пример #2
0
        public ResultStatus Freeze(
            UserQueryMaint userQueryMaint,
            UserQueryMaint_Parameters parameters,
            UserQueryMaint_Request request,
            out UserQueryMaint_Result result)
        {
            result = (UserQueryMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)userQueryMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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