{"issue":{"milestone":null,"user":{"id":240860,"login":"ielbury","url":"https://api.github.com/users/ielbury","avatar_url":"https://secure.gravatar.com/avatar/1698039f6ba441ef2588581fd8e763c3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1698039f6ba441ef2588581fd8e763c3"},"title":"Multiple method signatures for AcceptSocketRequest method","created_at":"2011-12-17T00:59:03Z","updated_at":"2011-12-17T02:45:10Z","labels":[],"state":"open","id":2586810,"html_url":"https://github.com/SignalR/SignalR/issues/99","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"On one of my development machines, I get a 'System.Reflection.AmbiguousMatchException' when executing typeof(HttpContextBase).GetMethod(\"AcceptWebSocketRequest\") != null in PersistentConnection.cs. When I do a typeof(HttpContextBase).GetMethods(), there are two methods with the same name but different arguments:\r\n\r\n    [32]: {System.String get_WebSocketNegotiatedProtocol()}\r\n    [33]: {System.String[] get_WebSocketRequestedProtocols()}\r\n    [34]: {Void AcceptWebSocketRequest(System.Func`2[System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task])}\r\n    [35]: {Void AcceptWebSocketRequest(System.Func`2[System.Web.WebSockets.AspNetWebSocketContext,System.Threading.Tasks.Task], System.Web.WebSockets.AspNetWebSocketOptions)}\r\n\r\nI corrected the problem by doing a typeof(HttpContextBase).GetMethods().Where(m => m.Name == \"AcceptWebSocketRequest\").Count() > 0; but it may be better to check for one of the other methods/properties that identify if WebSockets are available ... or is it my setup?\r\n\r\n\r\n","number":99,"url":"https://api.github.com/repos/SignalR/SignalR/issues/99","comments":2,"assignee":null},"comment":{"user":{"id":240860,"login":"ielbury","url":"https://api.github.com/users/ielbury","avatar_url":"https://secure.gravatar.com/avatar/1698039f6ba441ef2588581fd8e763c3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1698039f6ba441ef2588581fd8e763c3"},"created_at":"2011-12-17T02:45:10Z","updated_at":"2011-12-17T02:45:10Z","id":3187327,"body":"I was just looking to set if the latest disconnect logic and/or SSE solve some of the problems I am having. I do realize that this project is in flux and didn't not know if problem is caused by me running an older (4.5 Preview) version of the .net framework ... that's why I noted that it 'may be my setup'.\r\n\r\nJust trying to contribute!\r\n","url":"https://api.github.com/repos/SignalR/SignalR/issues/comments/3187327"},"action":"created"}