Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inheritance from a method
Message
From
14/01/2006 19:49:58
 
 
To
All
General information
Forum:
ASP.NET
Category:
Class design
Title:
Inheritance from a method
Miscellaneous
Thread ID:
01086877
Message ID:
01086877
Views:
67
My Web Service contains a set of methods. Some of them require to do the same process at first. This is an example of some methods:
    Public Shared Function GetMessage(ByVal tdDate As Date, ByVal tnForum As Integer) As String
    DoCommonProcess()
    Return ""
    End Function

    Public Shared Function GetCategory(ByVal tnForum As Integer) As String
    DoCommonProcess()
    Return ""
    End Function
Assuming DoCommonProcess() exists such as defined here:
Imports Microsoft.VisualBasic

Public Class Common

    Public Shared Function DoCommonProcess() As Boolean
        Return True
    End Function

End Class
How would I have to adjust each Web Service method that need to inherit from Common.DoCommonProcess()?
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