Example #1
0
 //---------------------------------------------------------------------------------
 /// <summary>
 /// Get all of the stacks available in the current location
 /// </summary>
 //---------------------------------------------------------------------------------
 public StackInfo[] GetStacks()
 {
     return(DoRpcCall(() =>
     {
         var requestParams = new NonStackRequestParams(Directory.GetCurrentDirectory());
         var result = _server.InvokeWithParameterObjectAsync <StackInfoRequestResponse>("getStackInfoFromFilePath", requestParams).Result;
         return result.StackInfo.ToArray();
     }));
 }
Example #2
0
 //---------------------------------------------------------------------------------
 /// <summary>
 /// Call the server to retrieve all uncomitted work
 /// </summary>
 //---------------------------------------------------------------------------------
 public DanglingWork GetDanglingWork()
 {
     return(DoRpcCall(() =>
     {
         var requestParams = new NonStackRequestParams(Directory.GetCurrentDirectory())
         {
         };
         return _server.InvokeWithParameterObjectAsync <DanglingWork>(StringConstants.CheckForDanglingWork, requestParams).Result;
     }));
 }