Ejemplo n.º 1
0
 /// <summary>
 /// starts the application
 /// </summary>
 /// <param name="host">The ApplicationHost for this application.</param>
 public void Start(IApplicationHost host)
 {
     if (host != null)
     {
         _host = host;
         _host.TelephonySession.CurrentUICulture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
         _workflowInstance = SpeechSequentialWorkflowActivity.CreateWorkflow(_host, typeof(MenuActivity.Workflow1));
         SpeechSequentialWorkflowActivity.Start(_workflowInstance);
     }
     else
     {
         throw new ArgumentNullException("host");
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// stops the application
 /// </summary>
 /// <param name="immediate">true to indicate that the application should be stopped immediately.</param>
 public void Stop(bool immediate)
 {
     SpeechSequentialWorkflowActivity.Stop(_workflowInstance, immediate);
 }