Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion in VB.NET does not work
Message
From
14/07/2014 14:33:16
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Conversion in VB.NET does not work
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01603662
Message ID:
01603662
Views:
80
From this page:

http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.messageencodingbindingelement(v=vs.110).aspx

...I converted the BuildChannelListener() method.

This gives this:
    Public Overrides Function BuildChannelListener(Of TChannel)(context As System.ServiceModel.Channels.BindingContext) _
     As System.ServiceModel.Channels.IChannelListener(Of TChannel)
        If context Is Nothing Then
            Throw New ArgumentNullException("context")
        End If

        context.BindingParameters.Add(Me)
        Return context.BuildInnerChannelListener(Of TChannel)()
    End Function
This gives:

"Public Overrides Function BuildChannelListener(Of TChannel)(context As System.ServiceModel.Channels.BindingContext) As System.ServiceModel.Channels.IChannelListener(Of TChannel)' cannot override 'Public Overridable Function BuildChannelListener(Of TChannel As {System.ServiceModel.Channels.IChannel, Class})(context As System.ServiceModel.Channels.BindingContext) As System.ServiceModel.Channels.IChannelListener(Of TChannel)' because they differ by type parameter constraints."

"Type argument 'TChannel' does not inherit from or implement the constraint type 'System.ServiceModel.Channels.IChannel'."

"Type argument 'TChannel' does not satisfy the 'Class' constraint for type parameter 'TChannel'."

All the other methods work ok on the conversion. This one at the designer level it does not work that much.

Anyone would know what I am missing?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform