Beispiel #1
0
 public RemoteStartMethod(
     RemoteStart Cdo,
     RemoteStartMethods Method,
     RemoteStart_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus GetActions(
            RemoteStart remoteStart,
            RemoteStart_Parameters parameters,
            RemoteStart_Request request,
            out RemoteStart_Result result)
        {
            result = (RemoteStart_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)remoteStart, (Parameters)parameters, (Request)request);
            ResultStatus res;

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