2012-11-16 3 views
0

J'avais l'habitude d'avoir un transport basé sur HTTP et j'ai démarré mon application dans Applicaiton_Start. Par bootstrap, je veux dire configurer mon conteneur DI, etc. Je veux passer aux canaux nommés mais je souhaite continuer à utiliser HTTP sur un autre serveur. Puis-je utiliser ce qui suit pour le bootstrap indépendant du transport? J'héberge à l'intérieur d'IIS.amorçage WCF pour plusieurs liaisons

/// <summary> 
/// This class needs to reside in the App_Code special ASP.NET folder 
/// It also needs to be set with a build action of Content 
/// The signature public static void AppInitialize() is recognised by ASP.NET and is 
/// always called no matter the binding (HTTP or not) 
/// </summary> 
public static class AppStart 
{ 
    public static void AppInitialize() 
    { 
     Bootstrapper.Initialize(); 
    } 
} 

Répondre

Questions connexes