Пример #1
0
 public ResourceFamilyMaintMethod(
     ResourceFamilyMaint Cdo,
     ResourceFamilyMaintMethods Method,
     ResourceFamilyMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Пример #2
0
        public ResultStatus Freeze(
            ResourceFamilyMaint resourceFamilyMaint,
            ResourceFamilyMaint_Parameters parameters,
            ResourceFamilyMaint_Request request,
            out ResourceFamilyMaint_Result result)
        {
            result = (ResourceFamilyMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)resourceFamilyMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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