Ejemplo n.º 1
0
 public PackageTypeMaintMethod(
     PackageTypeMaint Cdo,
     PackageTypeMaintMethods Method,
     PackageTypeMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus Freeze(
            PackageTypeMaint packageTypeMaint,
            PackageTypeMaint_Parameters parameters,
            PackageTypeMaint_Request request,
            out PackageTypeMaint_Result result)
        {
            result = (PackageTypeMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)packageTypeMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IPackageTypeMaintService)this._Channel).Freeze(this._UserProfile, packageTypeMaint, parameters, request, out result) : this.AddMethod((Method) new PackageTypeMaintMethod(packageTypeMaint, PackageTypeMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)packageTypeMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }