public Stream UploadMetadata2Async(Common.Solution solution, Stream messageBody) { try { System.IO.MemoryStream ms = new MemoryStream(); messageBody.CopyTo(ms); ms.Position = 0; AsyncDeployMetadataThread t = new AsyncDeployMetadataThread(this, solution, ms, true); t.Start(); return(Common.Utils.MakeTextAnswer(String.Format("accepted"))); } catch (Exception e) { return(Common.Utils.MakeExceptionAnswer(e, solution.Name)); } }
public Stream UploadMetadataAsync(Common.Solution solution, Stream messageBody) { try { System.IO.MemoryStream ms = new MemoryStream(); messageBody.CopyTo(ms); ms.Position = 0; AsyncDeployMetadataThread t = new AsyncDeployMetadataThread(this, solution, ms, false); t.Start(); return Common.Utils.MakeTextAnswer(String.Format("accepted")); } catch (Exception e) { return Common.Utils.MakeExceptionAnswer(e, solution.Name); } }