Пример #1
0
 public static void Start(string url)
 {
     // TODO: rewrite it
     // setTracing();
     var tracingControl = new TracingControl("TmxServer_");
     Url = url;
     PrepareComponents();
     LoadModules();
     _nancyHost = new NancyHost(new Uri(url));
     SetDotLiquidNamingConventions();
     RegisterTypes();
     LoadPlugins();
     LoadDefaults();
     LoadWorkflows();
     _nancyHost.Start();
 }
Пример #2
0
 public static void Init()
 {
     if (_alreadyInitialized) return;
     // 20141211
     // temporary
     // TODO: think about where to move it
     var tracingControl = new TracingControl("TmxClient_");
     
     LoadPlugins();
     
     // to make reference to Commnon.Logging
     var log = LogManager.GetLogger(typeof(RestTemplate));
     log = null;
     
     _alreadyInitialized = true;
 }