{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefxlab/issues/1006","repository_url":"https://api.github.com/repos/dotnet/corefxlab","labels_url":"https://api.github.com/repos/dotnet/corefxlab/issues/1006/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefxlab/issues/1006/comments","events_url":"https://api.github.com/repos/dotnet/corefxlab/issues/1006/events","html_url":"https://github.com/dotnet/corefxlab/pull/1006","id":190754895,"number":1006,"title":"Expose LocalEndPoint property on SocketListener","user":{"login":"stbraley","id":3817854,"avatar_url":"https://avatars.githubusercontent.com/u/3817854?v=3","gravatar_id":"","url":"https://api.github.com/users/stbraley","html_url":"https://github.com/stbraley","followers_url":"https://api.github.com/users/stbraley/followers","following_url":"https://api.github.com/users/stbraley/following{/other_user}","gists_url":"https://api.github.com/users/stbraley/gists{/gist_id}","starred_url":"https://api.github.com/users/stbraley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbraley/subscriptions","organizations_url":"https://api.github.com/users/stbraley/orgs","repos_url":"https://api.github.com/users/stbraley/repos","events_url":"https://api.github.com/users/stbraley/events{/privacy}","received_events_url":"https://api.github.com/users/stbraley/received_events","type":"User","site_admin":false},"labels":[{"id":310972515,"url":"https://api.github.com/repos/dotnet/corefxlab/labels/cla-not-required","name":"cla-not-required","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-21T15:48:05Z","updated_at":"2016-11-21T17:18:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/corefxlab/pulls/1006","html_url":"https://github.com/dotnet/corefxlab/pull/1006","diff_url":"https://github.com/dotnet/corefxlab/pull/1006.diff","patch_url":"https://github.com/dotnet/corefxlab/pull/1006.patch"},"body":"When using a system assigned port for the SocketListener. The SocketListener class needs to expose the address of the socket so the caller can obtain the assigned port. I've added a property to expose the endpoint of the socket. If the socket is null, then the property will return a empty endpoint. "},"comment":{"url":"https://api.github.com/repos/dotnet/corefxlab/issues/comments/262004399","html_url":"https://github.com/dotnet/corefxlab/pull/1006#issuecomment-262004399","issue_url":"https://api.github.com/repos/dotnet/corefxlab/issues/1006","id":262004399,"user":{"login":"stbraley","id":3817854,"avatar_url":"https://avatars.githubusercontent.com/u/3817854?v=3","gravatar_id":"","url":"https://api.github.com/users/stbraley","html_url":"https://github.com/stbraley","followers_url":"https://api.github.com/users/stbraley/followers","following_url":"https://api.github.com/users/stbraley/following{/other_user}","gists_url":"https://api.github.com/users/stbraley/gists{/gist_id}","starred_url":"https://api.github.com/users/stbraley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbraley/subscriptions","organizations_url":"https://api.github.com/users/stbraley/orgs","repos_url":"https://api.github.com/users/stbraley/repos","events_url":"https://api.github.com/users/stbraley/events{/privacy}","received_events_url":"https://api.github.com/users/stbraley/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T17:18:08Z","updated_at":"2016-11-21T17:18:08Z","body":"No, need to get the listening port number.\r\n\r\nModeling after the TcpListener in the core framework.\r\n\r\n`var listener = new SocketListener();\r\n var endPoint = new IPEndPoint(IPAddress.Loopback, 0);\r\n_socketListener.Start(_endPoint);\r\n\r\nvar port = ((IPEndPoint)listener.LocalEndpoint).Port;`\r\n"}}
{"actor":{"display_login":"stbraley"}}