Created
March 19, 2016 20:00
-
-
Save jongio/20703980400f502b4cce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed class GetUserTask : TaskActivity<string, string> | |
{ | |
public GetUserTask() | |
{ | |
} | |
protected override string Execute(DurableTask.TaskContext context, string input) | |
{ | |
GetUserName userNamedialog = new GetUserName(); | |
Console.WriteLine("Waiting for user to enter name..."); | |
string user = ""; | |
DialogResult dialogResult = userNamedialog.ShowDialog(); | |
if (dialogResult == DialogResult.OK) | |
{ | |
user = userNamedialog.UserName; | |
} | |
Console.WriteLine("User Name Entered: " + user); | |
return user; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment