Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving extension inside the code
Message
 
 
À
20/03/2014 10:06:22
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01596910
Message ID:
01596912
Vues:
41
>I have this to support an extension in my Web Service inside the Web.config file:
>
>
><?xml version="1.0"?>
><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
>	<system.web>
>		<webServices>
>			<soapExtensionTypes>
>				<add type="Framework.TraceExtension,Framework" priority="1" group="0"/>
>			</soapExtensionTypes>
>		</webServices>
></configuration>
>
>
>Would there be a way to remove that from there and have it in the code instead?

I am sorry I don't nnow the answer to your question. I'm curious, though, why you want it in your code instead of the config file. I thought the idea was to keep as much hard coding as possible out of the code. That way, using techniques like dependency injection, it's possible to change an app without having to change code or rebuild.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform