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

Added EXE support (for OWIN self-hosted SignalR hubs) #3827

Merged
merged 2 commits into from
Jan 26, 2017
Merged

Added EXE support (for OWIN self-hosted SignalR hubs) #3827

merged 2 commits into from
Jan 26, 2017

Conversation

jcoutch
Copy link
Contributor

@jcoutch jcoutch commented Dec 11, 2016

The Signalr.exe utility only scanned for DLL's. In the case of a self-hosted OWIN process, the hubs are generally part of the EXE. Added a /exe flag that will search EXE's first, followed by DLL's.

@dnfclas
Copy link

dnfclas commented Dec 11, 2016

Hi @jcoutch, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla2.dotnetfoundation.org.

TTYL, DNFBOT;

@dnfclas
Copy link

dnfclas commented Dec 11, 2016

@jcoutch, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@davidfowl
Copy link
Member

This doesn't need to be a flag really.

@jcoutch
Copy link
Contributor Author

jcoutch commented Dec 19, 2016

Sorry I didn't respond right away. Primary reason I tossed it behind a flag was so it didn't affect existing behavior. I can remove the flag if it's not needed.

@jcoutch
Copy link
Contributor Author

jcoutch commented Dec 30, 2016

@davidfowl - I removed the /exe flag, and made it the default behavior.

@@ -61,7 +61,9 @@ private void OutputHubs(string path, string url, string outputPath)
path = path ?? Directory.GetCurrentDirectory();
url = url ?? "/signalr";

var assemblies = Directory.GetFiles(path, "*.dll", SearchOption.AllDirectories);
var assemblies = Directory.GetFiles(path, "*.exe", SearchOption.AllDirectories)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be Concat instead of Union since the items are already unique.

@moozzyk moozzyk added this to the vNext milestone Jan 24, 2017
@moozzyk moozzyk merged commit 79ec5c5 into SignalR:dev Jan 26, 2017
@moozzyk moozzyk modified the milestones: 2.2.2, vNext Jan 26, 2017
@moozzyk moozzyk removed this from the 2.2.2 milestone Apr 12, 2017
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.

4 participants