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

Prefix signals to avoid collisions and security issues. #1322

Merged
merged 3 commits into from Jan 14, 2013
Merged

Conversation

davidfowl
Copy link
Member

{
internal class ListHelper<T>
{
public static readonly IList<T> Empty = new List<T>();
Copy link
Member

Choose a reason for hiding this comment

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

This should be a read only IList i think, to prevent it from being manipulated by reference accidently.

- Prefix all signals with a unique prefix.
- Changed various apis to IE<T> to IList<T>
- Updated tests.

#1320


internal static string GetConnectionId(string connectionId)
{
Copy link
Member

Choose a reason for hiding this comment

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

Don't we usually make method on internal classes public?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's really inconsistent but I'll make them public just since I think that's what the rest are.

@davidfowl davidfowl merged commit 9b72449 into dev Jan 14, 2013
@davidfowl davidfowl deleted the prefixes branch January 14, 2013 03:00
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