예제 #1
0
 public DictionaryServiceMethod(
     DictionaryService Cdo,
     DictionaryServiceMethods Method,
     DictionaryService_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
예제 #2
0
        public ResultStatus GetWIPMsgs(
            DictionaryService dictionaryService,
            DictionaryService_Parameters parameters,
            DictionaryService_Request request,
            out DictionaryService_Result result)
        {
            result = (DictionaryService_Result)null;
            this.OnBeforeCall(nameof(GetWIPMsgs), (DCObject)dictionaryService, (Parameters)parameters, (Request)request);
            ResultStatus res;

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