Ejemplo n.º 1
0
 public RemoteReceiveMethod(
     RemoteReceive Cdo,
     RemoteReceiveMethods Method,
     RemoteReceive_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus GetActions(
            RemoteReceive remoteReceive,
            RemoteReceive_Parameters parameters,
            RemoteReceive_Request request,
            out RemoteReceive_Result result)
        {
            result = (RemoteReceive_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)remoteReceive, (Parameters)parameters, (Request)request);
            ResultStatus res;

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