Esempio n. 1
0
        public PsApiManagementOperationResult(OperationResultContract operationResult)
            : this()
        {
            if (operationResult == null)
            {
                throw new ArgumentNullException("operationResult");
            }

            Id         = operationResult.IdPath;
            Error      = operationResult.Error != null ? new ErrorBody(operationResult.Error) : null;
            ResultInfo = operationResult.ResultInfo;
            Started    = operationResult.Started;
            Updated    = operationResult.Updated;
            State      = ToTenantConfigurationState(operationResult.Status);
        }
        public PsApiManagementOperationResult(OperationResultContract operationResult)
            : this()
        {
            if (operationResult == null)
            {
                throw new ArgumentNullException("operationResult");
            }

            Id = operationResult.IdPath;
            Error = operationResult.Error != null ? new ErrorBody(operationResult.Error) : null;
            ResultInfo = operationResult.ResultInfo;
            Started = operationResult.Started;
            Updated = operationResult.Updated;
            State = ToTenantConfigurationState(operationResult.Status);
        }