Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Implementing IDisposable in a class
Message
 
À
14/02/2014 15:22:11
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01594093
Message ID:
01594337
Vues:
28
well ... too bad :).

>>Michel should try something like
>>
>>
>>Using usingObject = New System.ServiceModel.OperationContextScope(loMyService.InnerChannel)
>>      loSOAPSVC.oOperationContextScope = usingObject
>>      .
>>      .
>>end using
>>
>
>Higher in this thread is a mention that I did that. It was called a ghost reference to a higher object but done in order to benefit of Using/End Using in the client class. It worked as you said. But, it was not the best approach. Later on, and I believe it was suggested by Viv, it was to implement iDisposable for the oOperationContextScope and that took care of it.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform