Example #1
0
 public GetAttachedDocumentsMethod(
     GetAttachedDocuments Cdo,
     GetAttachedDocumentsMethods Method,
     GetAttachedDocuments_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Example #2
0
        public ResultStatus GetWIPMsgs(
            GetAttachedDocuments getAttachedDocuments,
            GetAttachedDocuments_Parameters parameters,
            GetAttachedDocuments_Request request,
            out GetAttachedDocuments_Result result)
        {
            result = (GetAttachedDocuments_Result)null;
            this.OnBeforeCall(nameof(GetWIPMsgs), (DCObject)getAttachedDocuments, (Parameters)parameters, (Request)request);
            ResultStatus res;

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