Exemple #1
0
 public OrganizationMaintMethod(
     OrganizationMaint Cdo,
     OrganizationMaintMethods Method,
     OrganizationMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemple #2
0
        public ResultStatus Freeze(
            OrganizationMaint organizationMaint,
            OrganizationMaint_Parameters parameters,
            OrganizationMaint_Request request,
            out OrganizationMaint_Result result)
        {
            result = (OrganizationMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)organizationMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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