Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inheritance from a method
Message
De
14/01/2006 19:49:58
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Titre:
Inheritance from a method
Divers
Thread ID:
01086877
Message ID:
01086877
Vues:
69
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform