Example #1
0
 public EndCollaborationMethod(
     EndCollaboration Cdo,
     EndCollaborationMethods Method,
     EndCollaboration_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Example #2
0
        public ResultStatus GetActions(
            EndCollaboration endCollaboration,
            EndCollaboration_Parameters parameters,
            EndCollaboration_Request request,
            out EndCollaboration_Result result)
        {
            result = (EndCollaboration_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)endCollaboration, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IEndCollaborationService)this._Channel).GetActions(this._UserProfile, endCollaboration, parameters, request, out result) : this.AddMethod((Method) new EndCollaborationMethod(endCollaboration, EndCollaborationMethods.GetActions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetActions), res, (DCObject)endCollaboration, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }