Exemple #1
0
 public GetMaintenanceStatusesMethod(
     GetMaintenanceStatuses Cdo,
     GetMaintenanceStatusesMethods Method,
     GetMaintenanceStatuses_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemple #2
0
        public ResultStatus GetWIPMsgs(
            Camstar.WCF.ObjectStack.GetMaintenanceStatuses getMaintenanceStatuses,
            GetMaintenanceStatuses_Parameters parameters,
            GetMaintenanceStatuses_Request request,
            out GetMaintenanceStatuses_Result result)
        {
            result = (GetMaintenanceStatuses_Result)null;
            this.OnBeforeCall(nameof(GetWIPMsgs), (DCObject)getMaintenanceStatuses, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IGetMaintenanceStatusesService)this._Channel).GetWIPMsgs(this._UserProfile, getMaintenanceStatuses, parameters, request, out result) : this.AddMethod((Method) new GetMaintenanceStatusesMethod(getMaintenanceStatuses, GetMaintenanceStatusesMethods.GetWIPMsgs, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetWIPMsgs), res, (DCObject)getMaintenanceStatuses, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }