Ejemplo n.º 1
0
 private void FireForgetTaskWithError(object obj)
 {
     Console.WriteLine("------------- FireForgetTaskWithError ---------------");
     TaskMonitor.Build()
     .ExecuteTaskAsync((username),
                       OtherAuthenticateWithError, OtherOnAuthenticationSuccess, OtherOnAuthenticationFail);
 }
Ejemplo n.º 2
0
        private void FireForgetTaskWithResult(object obj)
        {
            Console.WriteLine("------------- FireForgetTaskWithResult ---------------");
            Console.WriteLine("------------- Starting ---------------");

            TaskMonitor.Build()
            .WhenStarted(() => IsBusy  = true)
            .WhenFinished(() => IsBusy = false)
            .ExecuteTaskAsync((username, password),
                              Authenticate, OnAuthenticationSuccess, OnAuthenticationFail);
        }
Ejemplo n.º 3
0
 private void FireForgetTask(object obj)
 {
     TaskMonitor.Build()
     .RequestServiceAsync(FireForgetAuthenticate());
 }