{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/Docs/pulls/comments/51493791","id":51493791,"diff_hunk":"@@ -63,15 +63,15 @@ Using ASP.NET Hosting on an OWIN-based server\n OWIN-based servers can host ASP.NET applications, since ASP.NET conforms to the OWIN specification. One such server is `Nowin <https://github.com/Bobris/Nowin>`_, a .NET OWIN web server. In the sample for this article, I've included a very simple project that references Nowin and uses it to create a simple server capable of self-hosting ASP.NET 5.\n \n .. literalinclude:: owin/sample/src/NowinSample/NowinServerFactory.cs\n-\t:emphasize-lines: 13,19,22,27,39\n+\t:emphasize-lines: 13,19,22,27,41\n \t:linenos:\n \t:language: c#\n \n-`IServerFactory <https://github.com/aspnet/Hosting/blob/1.0.0-beta5/src/Microsoft.AspNet.Hosting.Server.Abstractions/IServerFactory.cs>`_ is an ASP.NET interface that requires an Initialize and a Start method. Initialize must return an instance of `IServerInformation <https://github.com/aspnet/Hosting/blob/1.0.0-beta5/src/Microsoft.AspNet.Hosting.Server.Abstractions/IServerInformation.cs>`_, which simply includes the server's name (but the specific implementation may provide additional functionality). In this example, the ``NowinServerInformation`` class is defined as a private class within the factory, and is returned by ``Initialize`` as required.\n+`IServerFactory <https://github.com/aspnet/Hosting/blob/1.0.0-rc1/src/Microsoft.AspNet.Hosting.Server.Abstractions/IServerFactory.cs>`_ is an ASP.NET interface that requires an Initialize and a Start method. Initialize must return an instance of `IFeatureCollection <https://github.com/aspnet/HttpAbstractions/blob/1.0.0-rc1/src/Microsoft.AspNet.Http.Features/IFeatureCollection.cs>`_, which we populate with a ``INowinServerInformation`` that simply wraps includes the server's name (but the specific implementation may provide additional functionality). In this example, the ``NowinServerInformation`` class is defined as a private class within the factory, and is returned by ``Initialize`` as required.","path":"aspnet/fundamentals/owin.rst","position":42,"original_position":42,"commit_id":"95834615896463979bd3cc12090ba7533d56a186","original_commit_id":"95834615896463979bd3cc12090ba7533d56a186","user":{"login":"Rick-Anderson","id":3605364,"avatar_url":"https://avatars.githubusercontent.com/u/3605364?v=3","gravatar_id":"","url":"https://api.github.com/users/Rick-Anderson","html_url":"https://github.com/Rick-Anderson","followers_url":"https://api.github.com/users/Rick-Anderson/followers","following_url":"https://api.github.com/users/Rick-Anderson/following{/other_user}","gists_url":"https://api.github.com/users/Rick-Anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/Rick-Anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rick-Anderson/subscriptions","organizations_url":"https://api.github.com/users/Rick-Anderson/orgs","repos_url":"https://api.github.com/users/Rick-Anderson/repos","events_url":"https://api.github.com/users/Rick-Anderson/events{/privacy}","received_events_url":"https://api.github.com/users/Rick-Anderson/received_events","type":"User","site_admin":false},"body":"`` to method names\r\nis an [ DELETE ASP.NET] interface that requires an ``Initialize`` and a ``Start`` method. ``Initialize`` must return an instance of `IFeatureCollection <https://github.com/aspnet/HttpAbstractions/blob/1.0.0-rc1/src/Microsoft.AspNet.Http.Features/IFeatureCollection.cs>`_, which we populate with a ``INowinServerInformation`` that [DELETE simply[DELETE wraps] includes the server's name ([Delete but] the specific implementation may provide additional functionality).","created_at":"2016-02-01T22:43:36Z","updated_at":"2016-02-01T22:43:36Z","html_url":"https://github.com/aspnet/Docs/pull/939#discussion_r51493791","pull_request_url":"https://api.github.com/repos/aspnet/Docs/pulls/939","_links":{"self":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/comments/51493791"},"html":{"href":"https://github.com/aspnet/Docs/pull/939#discussion_r51493791"},"pull_request":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/939"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/Docs/pulls/939","id":57752962,"html_url":"https://github.com/aspnet/Docs/pull/939","diff_url":"https://github.com/aspnet/Docs/pull/939.diff","patch_url":"https://github.com/aspnet/Docs/pull/939.patch","issue_url":"https://api.github.com/repos/aspnet/Docs/issues/939","number":939,"state":"open","locked":false,"title":"Update OWIN article to RC1","user":{"login":"leonardlabat","id":642160,"avatar_url":"https://avatars.githubusercontent.com/u/642160?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardlabat","html_url":"https://github.com/leonardlabat","followers_url":"https://api.github.com/users/leonardlabat/followers","following_url":"https://api.github.com/users/leonardlabat/following{/other_user}","gists_url":"https://api.github.com/users/leonardlabat/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardlabat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardlabat/subscriptions","organizations_url":"https://api.github.com/users/leonardlabat/orgs","repos_url":"https://api.github.com/users/leonardlabat/repos","events_url":"https://api.github.com/users/leonardlabat/events{/privacy}","received_events_url":"https://api.github.com/users/leonardlabat/received_events","type":"User","site_admin":false},"body":"Addresses #932","created_at":"2016-01-30T22:35:46Z","updated_at":"2016-02-01T22:43:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d472839b28db1fdd4350d467dbc18a3687e8f84a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Docs/pulls/939/commits","review_comments_url":"https://api.github.com/repos/aspnet/Docs/pulls/939/comments","review_comment_url":"https://api.github.com/repos/aspnet/Docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/Docs/issues/939/comments","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/95834615896463979bd3cc12090ba7533d56a186","head":{"label":"leonardlabat:issue-#932","ref":"issue-#932","sha":"95834615896463979bd3cc12090ba7533d56a186","user":{"login":"leonardlabat","id":642160,"avatar_url":"https://avatars.githubusercontent.com/u/642160?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardlabat","html_url":"https://github.com/leonardlabat","followers_url":"https://api.github.com/users/leonardlabat/followers","following_url":"https://api.github.com/users/leonardlabat/following{/other_user}","gists_url":"https://api.github.com/users/leonardlabat/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardlabat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardlabat/subscriptions","organizations_url":"https://api.github.com/users/leonardlabat/orgs","repos_url":"https://api.github.com/users/leonardlabat/repos","events_url":"https://api.github.com/users/leonardlabat/events{/privacy}","received_events_url":"https://api.github.com/users/leonardlabat/received_events","type":"User","site_admin":false},"repo":{"id":46503622,"name":"Docs","full_name":"leonardlabat/Docs","owner":{"login":"leonardlabat","id":642160,"avatar_url":"https://avatars.githubusercontent.com/u/642160?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardlabat","html_url":"https://github.com/leonardlabat","followers_url":"https://api.github.com/users/leonardlabat/followers","following_url":"https://api.github.com/users/leonardlabat/following{/other_user}","gists_url":"https://api.github.com/users/leonardlabat/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardlabat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardlabat/subscriptions","organizations_url":"https://api.github.com/users/leonardlabat/orgs","repos_url":"https://api.github.com/users/leonardlabat/repos","events_url":"https://api.github.com/users/leonardlabat/events{/privacy}","received_events_url":"https://api.github.com/users/leonardlabat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leonardlabat/Docs","description":"Documentation for ASP.NET 5","fork":true,"url":"https://api.github.com/repos/leonardlabat/Docs","forks_url":"https://api.github.com/repos/leonardlabat/Docs/forks","keys_url":"https://api.github.com/repos/leonardlabat/Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leonardlabat/Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leonardlabat/Docs/teams","hooks_url":"https://api.github.com/repos/leonardlabat/Docs/hooks","issue_events_url":"https://api.github.com/repos/leonardlabat/Docs/issues/events{/number}","events_url":"https://api.github.com/repos/leonardlabat/Docs/events","assignees_url":"https://api.github.com/repos/leonardlabat/Docs/assignees{/user}","branches_url":"https://api.github.com/repos/leonardlabat/Docs/branches{/branch}","tags_url":"https://api.github.com/repos/leonardlabat/Docs/tags","blobs_url":"https://api.github.com/repos/leonardlabat/Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leonardlabat/Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leonardlabat/Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/leonardlabat/Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leonardlabat/Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/leonardlabat/Docs/languages","stargazers_url":"https://api.github.com/repos/leonardlabat/Docs/stargazers","contributors_url":"https://api.github.com/repos/leonardlabat/Docs/contributors","subscribers_url":"https://api.github.com/repos/leonardlabat/Docs/subscribers","subscription_url":"https://api.github.com/repos/leonardlabat/Docs/subscription","commits_url":"https://api.github.com/repos/leonardlabat/Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/leonardlabat/Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/leonardlabat/Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/leonardlabat/Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/leonardlabat/Docs/contents/{+path}","compare_url":"https://api.github.com/repos/leonardlabat/Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leonardlabat/Docs/merges","archive_url":"https://api.github.com/repos/leonardlabat/Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leonardlabat/Docs/downloads","issues_url":"https://api.github.com/repos/leonardlabat/Docs/issues{/number}","pulls_url":"https://api.github.com/repos/leonardlabat/Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/leonardlabat/Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/leonardlabat/Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leonardlabat/Docs/labels{/name}","releases_url":"https://api.github.com/repos/leonardlabat/Docs/releases{/id}","deployments_url":"https://api.github.com/repos/leonardlabat/Docs/deployments","created_at":"2015-11-19T16:04:07Z","updated_at":"2016-01-30T21:09:25Z","pushed_at":"2016-01-30T22:35:45Z","git_url":"git://github.com/leonardlabat/Docs.git","ssh_url":"git@github.com:leonardlabat/Docs.git","clone_url":"https://github.com/leonardlabat/Docs.git","svn_url":"https://github.com/leonardlabat/Docs","homepage":null,"size":33971,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aspnet:master","ref":"master","sha":"2736a704b8c1dd70cd2177f98750cfe57dac6b7e","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":28239455,"name":"Docs","full_name":"aspnet/Docs","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Docs","description":"Documentation for ASP.NET 5","fork":false,"url":"https://api.github.com/repos/aspnet/Docs","forks_url":"https://api.github.com/repos/aspnet/Docs/forks","keys_url":"https://api.github.com/repos/aspnet/Docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Docs/teams","hooks_url":"https://api.github.com/repos/aspnet/Docs/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Docs/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Docs/events","assignees_url":"https://api.github.com/repos/aspnet/Docs/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Docs/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Docs/tags","blobs_url":"https://api.github.com/repos/aspnet/Docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Docs/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Docs/languages","stargazers_url":"https://api.github.com/repos/aspnet/Docs/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Docs/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Docs/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Docs/subscription","commits_url":"https://api.github.com/repos/aspnet/Docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Docs/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Docs/merges","archive_url":"https://api.github.com/repos/aspnet/Docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Docs/downloads","issues_url":"https://api.github.com/repos/aspnet/Docs/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Docs/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Docs/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Docs/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Docs/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/Docs/deployments","created_at":"2014-12-19T17:38:02Z","updated_at":"2016-02-01T20:00:51Z","pushed_at":"2016-02-01T18:39:11Z","git_url":"git://github.com/aspnet/Docs.git","ssh_url":"git@github.com:aspnet/Docs.git","clone_url":"https://github.com/aspnet/Docs.git","svn_url":"https://github.com/aspnet/Docs","homepage":null,"size":40508,"stargazers_count":366,"watchers_count":366,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":585,"mirror_url":null,"open_issues_count":161,"forks":585,"open_issues":161,"watchers":366,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/939"},"html":{"href":"https://github.com/aspnet/Docs/pull/939"},"issue":{"href":"https://api.github.com/repos/aspnet/Docs/issues/939"},"comments":{"href":"https://api.github.com/repos/aspnet/Docs/issues/939/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/939/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Docs/pulls/939/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Docs/statuses/95834615896463979bd3cc12090ba7533d56a186"}}}}