Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement closeApp for silverlight apps #168

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bayandin
Copy link
Contributor

No description provided.

@NickAb NickAb closed this Nov 1, 2016
@NickAb NickAb reopened this Nov 1, 2016
Copy link
Contributor

@NickAb NickAb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.

@@ -89,6 +91,25 @@ public string DeviceName

#region Public Methods and Operators

public static AppType DetermineAppType(string packagePath)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be made private?

var remoteCommand = new Command(DriverCommand.CloseApp);
automator.CommandForwarder.ForwardCommand(remoteCommand);
Thread.Sleep(TimeSpan.FromMilliseconds(500));
if (automator.Deployer.AppType == AppType.XAP)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add IsTerminatable into Deployer? At the moment this condition is basically duplicated both her and in Deployer.
Or we can make Terminate return a bool: true if it can and did in fact terminated the app, false if it can not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants