Exemplo n.º 1
0
 public CreateEventMethod(
     CreateEvent Cdo,
     CreateEventMethods Method,
     CreateEvent_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemplo n.º 2
0
        public ResultStatus CreateParametricData(
            CreateEvent createEvent,
            CreateEvent_Parameters parameters,
            CreateEvent_Request request,
            out CreateEvent_Result result)
        {
            result = (CreateEvent_Result)null;
            this.OnBeforeCall(nameof(CreateParametricData), (DCObject)createEvent, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((ICreateEventService)this._Channel).CreateParametricData(this._UserProfile, createEvent, parameters, request, out result) : this.AddMethod((Method) new CreateEventMethod(createEvent, CreateEventMethods.CreateParametricData, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(CreateParametricData), res, (DCObject)createEvent, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }