Exemple #1
0
        public void GetLabels(LabelRequest request, LabelResult result, ResultStatus resultStatus)
        {
            this._inSiteXmlParser.ToXmlLabels(request);
            string empty = string.Empty;

            this._serverConnection.InboundXML = this._inSiteXmlParser.GetXmlAsString();
            this._Log.WriteXml(nameof(GetLabels), this._serverConnection.InboundXML, true, resultStatus);
            string str = this._serverConnection.Submit();

            this._Log.WriteXml(nameof(GetLabels), str, false, resultStatus);
            this._inSiteXmlParser.ToLabelsObject(str, result, resultStatus);
        }
Exemple #2
0
 public ResultStatus GetLabels(
     UserProfile userProfile,
     LabelRequest request,
     out LabelResult result)
 {
     result = new LabelResult();
     try
     {
         ResultStatus  resultStatus  = new ResultStatus();
         ServerManager serverManager = new ServerManager(this.GetType().Name, userProfile);
         serverManager.GetLabels(request, result, resultStatus);
         serverManager.Close();
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }