Ejemplo n.º 1
0
 public static IAppConfig UseWcfHost(
     this IAppConfig appConfig, WcfHostParams @params)
 {
     appConfig.AddAppRunnerAfter(() =>
     {
         var logger = appConfig.GetLogger("");
         try
         {
             new WcfHostRunner(@params, logger).Open();
         }
         catch (Exception ex)
         {
             logger.LogDebug(ex.ToString());
         }
     });
     return(appConfig);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set AppRunner action to be executed after current AppRunner action
 /// </summary>
 /// <param name="appConfig">AppConfig instance</param>
 /// <param name="appRunner">AppRunner delegate</param>
 /// <returns>AppConfig instance passed to the method</returns>
 public static IAppConfig AddRunner(this IAppConfig appConfig, Action appRunner)
 {
     return(appConfig.AddAppRunnerAfter(appRunner));
 }