Beispiel #1
0
 //---------------------------------------------------------------------------------
 /// <summary>
 /// Create a new stack level
 /// </summary>
 //---------------------------------------------------------------------------------
 public void NewStackLevel(StackInfo stackInfo)
 {
     DoRpcCall(() =>
     {
         var requestParams = new StackedRequestParams(stackInfo, null);
         var result        = _server.InvokeWithParameterObjectAsync <StackInfoRequestResponse>("createNewStackLevel", requestParams).Result;
     });
 }
Beispiel #2
0
 //---------------------------------------------------------------------------------
 /// <summary>
 /// Translated vesion of GotoStack
 /// </summary>
 //---------------------------------------------------------------------------------
 public void GoToStack(StackInfo stack, StackLevel stackLevel)
 {
     DoRpcCall(() =>
     {
         var requestParams = new StackedRequestParams(stack, stackLevel);
         var result        = _server.InvokeWithParameterObjectAsync <StackInfoRequestResponse>(StringConstants.GoToStackLevel, requestParams).Result;
     });
 }
Beispiel #3
0
 //---------------------------------------------------------------------------------
 /// <summary>
 /// Fill in the details of a level
 /// </summary>
 //---------------------------------------------------------------------------------
 public StackLevel GetLevelDetails(StackInfo stack, StackLevel level)
 {
     return(DoRpcCall(() =>
     {
         var requestParams = new StackedRequestParams(stack, level);
         var result = _server.InvokeWithParameterObjectAsync <GetLevelDetailsResponse>(StringConstants.GetLevelDetails, requestParams).Result;
         return result.StackLevel;
     }));
 }