1. DataUp
  2. Untitled project
  3. main

Source

main / Source / WebService / Web.Admin / RepositoryService.svc.cs

Diff from to

File Source/WebService/Web.Admin/RepositoryService.svc.cs

 using DataUp.Web.Admin.DataLayer;
 using DataUp.Web.Common;
 using DataUp.Web.Service.Model;
+using System.Diagnostics;
 
 namespace DataUp.Web.Admin
 {
         [WebInvoke(Method = "POST")]
         public string GetIdentifier()
         {
+            //Trace.TraceInformation("Get identifier called");
+
             string queryDataString = HttpContext.Current.Request["QueryData"];
             string repositoryModelString = HttpContext.Current.Request["RepositoryModel"];
 
                 // Get Authorisation for ONEShare repositoryType.
                 if (repository != null)
                 {
+                    //Trace.TraceInformation("Repository Name :" + repositoryModel.RepositoryName);
                     IRepository instance = RepositoryFactory.GetRepositoryInstance(repositoryModel.RepositoryName);
                     repositoryModel.RepositoryUrl = repository.GetIdentifierUrl;
 
 
                     if (instance != null)
                     {
-                        return instance.GetIdentifier(queryData, repositoryModel);
+                        //Trace.TraceInformation("Calling GetIdentifier on Repository");
+                        string returnValue = instance.GetIdentifier(queryData, repositoryModel);
+                        //Trace.TraceInformation("Returning value from service : " + returnValue);
+                            return returnValue;
                     }
                 }
             }