Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion in VB.NET does not work
Message
De
14/07/2014 14:33:16
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Conversion in VB.NET does not work
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01603662
Message ID:
01603662
Vues:
78
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform