internal void CopyFrom(ProxyIsAuthorizedResult SvcResult) { //load local object with service return values base.CopyFrom(SvcResult); _operations = SvcResult.Operations; _expires = SvcResult.Expires; }
public IsAuthorizedResult IsAuthorized(string operations) { try { _avaLog.Debug("AddressSvc.IsAuthorized"); ProxyIsAuthorizedResult svcResult = (ProxyIsAuthorizedResult)base.InvokeService(typeof(ProxyAddressSvc), MethodBase.GetCurrentMethod().Name, new object[] { operations }); _avaLog.Debug("Copying result from proxy object"); IsAuthorizedResult localResult = new IsAuthorizedResult(); //local copy to hold service results localResult.CopyFrom(svcResult); //load local object with service results return(localResult); } catch (Exception ex) { return(IsAuthorizedResult.CastFromBaseResult(ExceptionManager.HandleException(ex))); } }