Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion in VB.NET does not work
Message
From
15/07/2014 11:36:09
 
 
General information
Forum:
ASP.NET
Category:
Other
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:
01603704
Views:
43
>Compiles OK for me with VS2012 targeting 4.5. What version of VS and .NET are you using?

Thanks, this works.

Would you know why the first one does not require this syntax while the second one does?
    Public Overrides Function CanBuildChannelFactory(Of TChannel)(context As System.ServiceModel.Channels.BindingContext) As Boolean
        If context Is Nothing Then
            Throw New ArgumentNullException("context")
        End If

        Return context.CanBuildInnerChannelFactory(Of TChannel)()
    End Function

    Public Overrides Function BuildChannelListener(Of TChannel As_
     {Class, System.ServiceModel.Channels.IChannel})(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
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform