Bug 9192 - CreateChannel opens channel which is incorrect behaviour
Summary: CreateChannel opens channel which is incorrect behaviour
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: master
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-01-02 12:48 UTC by Oliver Waits
Modified: 2013-01-02 12:48 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Oliver Waits 2013-01-02 12:48:20 UTC
Calling CreateChannel() on the ChannelFactory causes the channel to open which is not the correct behaviour. The MS version will not open the channel till you try to use it. 

This behaviour prevents you customising the channel creation with an asynchronous channel open.

The function call EnsureOpened() should be removed from the CreateChannel() method. (it is not called on any of the other overloads.

Note You need to log in before you can comment on or make changes to this bug.