{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/wcf/pulls/comments/38353009","id":38353009,"diff_hunk":"@@ -0,0 +1,41 @@\n+﻿// Copyright (c) Microsoft. All rights reserved.\n+// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n+\n+using System;\n+using System.ServiceModel;\n+using System.Threading.Tasks;\n+using Xunit;\n+\n+public static class OperationBehaviorTest\n+{\n+    [Fact]\n+    [ActiveIssue(280)]\n+    public static void IOperationBehavior_Methods_AreCalled()\n+    {\n+        DuplexClientBase<ICustomOperationBehaviorDuplexService> duplexService = null;\n+        ICustomOperationBehaviorDuplexService proxy = null;\n+\n+        NetTcpBinding binding = new NetTcpBinding();\n+        binding.Security.Mode = SecurityMode.None;\n+\n+        WcfDuplexServiceCallback callbackService = new WcfDuplexServiceCallback();\n+        InstanceContext context = new InstanceContext(callbackService);\n+\n+        duplexService = new MyDuplexClientBase<ICustomOperationBehaviorDuplexService>(context, binding, new EndpointAddress(FakeAddress.TcpAddress));\n+        proxy = duplexService.ChannelFactory.CreateChannel();\n+\n+        // Allow work to be done before validation\n+        Task t = Task.Delay(1000);","path":"src/System.ServiceModel.Primitives/tests/Description/OperationBehaviorTest.cs","position":28,"original_position":28,"commit_id":"f299ed48e998736c596434476a46ee9d2ce2fcc2","original_commit_id":"f299ed48e998736c596434476a46ee9d2ce2fcc2","user":{"login":"roncain","id":3913124,"avatar_url":"https://avatars.githubusercontent.com/u/3913124?v=3","gravatar_id":"","url":"https://api.github.com/users/roncain","html_url":"https://github.com/roncain","followers_url":"https://api.github.com/users/roncain/followers","following_url":"https://api.github.com/users/roncain/following{/other_user}","gists_url":"https://api.github.com/users/roncain/gists{/gist_id}","starred_url":"https://api.github.com/users/roncain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roncain/subscriptions","organizations_url":"https://api.github.com/users/roncain/orgs","repos_url":"https://api.github.com/users/roncain/repos","events_url":"https://api.github.com/users/roncain/events{/privacy}","received_events_url":"https://api.github.com/users/roncain/received_events","type":"User","site_admin":false},"body":"Question only: Why does it need to wait at all?  Is there something asynchronous happening that is not done when CreateChannel returns?","created_at":"2015-08-31T20:04:36Z","updated_at":"2015-08-31T20:04:36Z","html_url":"https://github.com/dotnet/wcf/pull/299#discussion_r38353009","pull_request_url":"https://api.github.com/repos/dotnet/wcf/pulls/299","_links":{"self":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/comments/38353009"},"html":{"href":"https://github.com/dotnet/wcf/pull/299#discussion_r38353009"},"pull_request":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/299"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/wcf/pulls/299","id":43801705,"html_url":"https://github.com/dotnet/wcf/pull/299","diff_url":"https://github.com/dotnet/wcf/pull/299.diff","patch_url":"https://github.com/dotnet/wcf/pull/299.patch","issue_url":"https://api.github.com/repos/dotnet/wcf/issues/299","number":299,"state":"open","locked":false,"title":"Adding IOperationBehavior unit test","user":{"login":"StephenBonikowsky","id":12057732,"avatar_url":"https://avatars.githubusercontent.com/u/12057732?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBonikowsky","html_url":"https://github.com/StephenBonikowsky","followers_url":"https://api.github.com/users/StephenBonikowsky/followers","following_url":"https://api.github.com/users/StephenBonikowsky/following{/other_user}","gists_url":"https://api.github.com/users/StephenBonikowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBonikowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBonikowsky/subscriptions","organizations_url":"https://api.github.com/users/StephenBonikowsky/orgs","repos_url":"https://api.github.com/users/StephenBonikowsky/repos","events_url":"https://api.github.com/users/StephenBonikowsky/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBonikowsky/received_events","type":"User","site_admin":false},"body":"* Cleanup a few interfaces no longer needed in unit common code\r\n* Moved WcfDuplexServiceCallback to common code so it could be re-used\r\n* Fixes #280","created_at":"2015-08-31T19:43:39Z","updated_at":"2015-08-31T20:04:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc52a7e4c6bcc3e247f8aa1374740c8f663530c5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/wcf/pulls/299/commits","review_comments_url":"https://api.github.com/repos/dotnet/wcf/pulls/299/comments","review_comment_url":"https://api.github.com/repos/dotnet/wcf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/wcf/issues/299/comments","statuses_url":"https://api.github.com/repos/dotnet/wcf/statuses/f299ed48e998736c596434476a46ee9d2ce2fcc2","head":{"label":"StephenBonikowsky:Issue280","ref":"Issue280","sha":"f299ed48e998736c596434476a46ee9d2ce2fcc2","user":{"login":"StephenBonikowsky","id":12057732,"avatar_url":"https://avatars.githubusercontent.com/u/12057732?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBonikowsky","html_url":"https://github.com/StephenBonikowsky","followers_url":"https://api.github.com/users/StephenBonikowsky/followers","following_url":"https://api.github.com/users/StephenBonikowsky/following{/other_user}","gists_url":"https://api.github.com/users/StephenBonikowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBonikowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBonikowsky/subscriptions","organizations_url":"https://api.github.com/users/StephenBonikowsky/orgs","repos_url":"https://api.github.com/users/StephenBonikowsky/repos","events_url":"https://api.github.com/users/StephenBonikowsky/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBonikowsky/received_events","type":"User","site_admin":false},"repo":{"id":35977176,"name":"wcf","full_name":"StephenBonikowsky/wcf","owner":{"login":"StephenBonikowsky","id":12057732,"avatar_url":"https://avatars.githubusercontent.com/u/12057732?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBonikowsky","html_url":"https://github.com/StephenBonikowsky","followers_url":"https://api.github.com/users/StephenBonikowsky/followers","following_url":"https://api.github.com/users/StephenBonikowsky/following{/other_user}","gists_url":"https://api.github.com/users/StephenBonikowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBonikowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBonikowsky/subscriptions","organizations_url":"https://api.github.com/users/StephenBonikowsky/orgs","repos_url":"https://api.github.com/users/StephenBonikowsky/repos","events_url":"https://api.github.com/users/StephenBonikowsky/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBonikowsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StephenBonikowsky/wcf","description":"This repo contains the client-oriented WCF libraries that enable applications built on .NET Core to communicate with WCF services.","fork":true,"url":"https://api.github.com/repos/StephenBonikowsky/wcf","forks_url":"https://api.github.com/repos/StephenBonikowsky/wcf/forks","keys_url":"https://api.github.com/repos/StephenBonikowsky/wcf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StephenBonikowsky/wcf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StephenBonikowsky/wcf/teams","hooks_url":"https://api.github.com/repos/StephenBonikowsky/wcf/hooks","issue_events_url":"https://api.github.com/repos/StephenBonikowsky/wcf/issues/events{/number}","events_url":"https://api.github.com/repos/StephenBonikowsky/wcf/events","assignees_url":"https://api.github.com/repos/StephenBonikowsky/wcf/assignees{/user}","branches_url":"https://api.github.com/repos/StephenBonikowsky/wcf/branches{/branch}","tags_url":"https://api.github.com/repos/StephenBonikowsky/wcf/tags","blobs_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/refs{/sha}","trees_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StephenBonikowsky/wcf/statuses/{sha}","languages_url":"https://api.github.com/repos/StephenBonikowsky/wcf/languages","stargazers_url":"https://api.github.com/repos/StephenBonikowsky/wcf/stargazers","contributors_url":"https://api.github.com/repos/StephenBonikowsky/wcf/contributors","subscribers_url":"https://api.github.com/repos/StephenBonikowsky/wcf/subscribers","subscription_url":"https://api.github.com/repos/StephenBonikowsky/wcf/subscription","commits_url":"https://api.github.com/repos/StephenBonikowsky/wcf/commits{/sha}","git_commits_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/commits{/sha}","comments_url":"https://api.github.com/repos/StephenBonikowsky/wcf/comments{/number}","issue_comment_url":"https://api.github.com/repos/StephenBonikowsky/wcf/issues/comments{/number}","contents_url":"https://api.github.com/repos/StephenBonikowsky/wcf/contents/{+path}","compare_url":"https://api.github.com/repos/StephenBonikowsky/wcf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StephenBonikowsky/wcf/merges","archive_url":"https://api.github.com/repos/StephenBonikowsky/wcf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StephenBonikowsky/wcf/downloads","issues_url":"https://api.github.com/repos/StephenBonikowsky/wcf/issues{/number}","pulls_url":"https://api.github.com/repos/StephenBonikowsky/wcf/pulls{/number}","milestones_url":"https://api.github.com/repos/StephenBonikowsky/wcf/milestones{/number}","notifications_url":"https://api.github.com/repos/StephenBonikowsky/wcf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StephenBonikowsky/wcf/labels{/name}","releases_url":"https://api.github.com/repos/StephenBonikowsky/wcf/releases{/id}","created_at":"2015-05-20T22:17:45Z","updated_at":"2015-05-20T22:17:46Z","pushed_at":"2015-08-31T19:43:23Z","git_url":"git://github.com/StephenBonikowsky/wcf.git","ssh_url":"git@github.com:StephenBonikowsky/wcf.git","clone_url":"https://github.com/StephenBonikowsky/wcf.git","svn_url":"https://github.com/StephenBonikowsky/wcf","homepage":"","size":2103,"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":"dotnet:master","ref":"master","sha":"c674a2ae1fd4dbd9b2ecafec0924cd5df2daf9e2","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":35562993,"name":"wcf","full_name":"dotnet/wcf","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/wcf","description":"This repo contains the client-oriented WCF libraries that enable applications built on .NET Core to communicate with WCF services.","fork":false,"url":"https://api.github.com/repos/dotnet/wcf","forks_url":"https://api.github.com/repos/dotnet/wcf/forks","keys_url":"https://api.github.com/repos/dotnet/wcf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/wcf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/wcf/teams","hooks_url":"https://api.github.com/repos/dotnet/wcf/hooks","issue_events_url":"https://api.github.com/repos/dotnet/wcf/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/wcf/events","assignees_url":"https://api.github.com/repos/dotnet/wcf/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/wcf/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/wcf/tags","blobs_url":"https://api.github.com/repos/dotnet/wcf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/wcf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/wcf/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/wcf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/wcf/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/wcf/languages","stargazers_url":"https://api.github.com/repos/dotnet/wcf/stargazers","contributors_url":"https://api.github.com/repos/dotnet/wcf/contributors","subscribers_url":"https://api.github.com/repos/dotnet/wcf/subscribers","subscription_url":"https://api.github.com/repos/dotnet/wcf/subscription","commits_url":"https://api.github.com/repos/dotnet/wcf/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/wcf/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/wcf/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/wcf/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/wcf/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/wcf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/wcf/merges","archive_url":"https://api.github.com/repos/dotnet/wcf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/wcf/downloads","issues_url":"https://api.github.com/repos/dotnet/wcf/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/wcf/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/wcf/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/wcf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/wcf/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/wcf/releases{/id}","created_at":"2015-05-13T17:17:03Z","updated_at":"2015-08-30T21:47:34Z","pushed_at":"2015-08-31T19:43:39Z","git_url":"git://github.com/dotnet/wcf.git","ssh_url":"git@github.com:dotnet/wcf.git","clone_url":"https://github.com/dotnet/wcf.git","svn_url":"https://github.com/dotnet/wcf","homepage":"","size":4560,"stargazers_count":496,"watchers_count":496,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":143,"mirror_url":null,"open_issues_count":72,"forks":143,"open_issues":72,"watchers":496,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/299"},"html":{"href":"https://github.com/dotnet/wcf/pull/299"},"issue":{"href":"https://api.github.com/repos/dotnet/wcf/issues/299"},"comments":{"href":"https://api.github.com/repos/dotnet/wcf/issues/299/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/299/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/299/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/wcf/statuses/f299ed48e998736c596434476a46ee9d2ce2fcc2"}}}}