Example #1
0
 public ResourceMaintMethod(
     ResourceMaint Cdo,
     ResourceMaintMethods Method,
     ResourceMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Example #2
0
        public ResultStatus CreateMaintenanceStatuses(
            ResourceMaint resourceMaint,
            ResourceMaint_Parameters parameters,
            ResourceMaint_Request request,
            out ResourceMaint_Result result)
        {
            result = (ResourceMaint_Result)null;
            this.OnBeforeCall(nameof(CreateMaintenanceStatuses), (DCObject)resourceMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IResourceMaintService)this._Channel).CreateMaintenanceStatuses(this._UserProfile, resourceMaint, parameters, request, out result) : this.AddMethod((Method) new ResourceMaintMethod(resourceMaint, ResourceMaintMethods.CreateMaintenanceStatuses, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(CreateMaintenanceStatuses), res, (DCObject)resourceMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }