public void Register(params System.Reflection.Assembly[] assemblies) { mAssemblies.AddRange(assemblies); try { mActionFactory.Register(this.ServerConfig, this, assemblies); } catch (Exception e_) { Log(LogType.Error, " http api server load controller error " + e_.Message); } }
public void Register(params System.Reflection.Assembly[] assemblies) { mUrlRewrite.UrlIgnoreCase = Options.UrlIgnoreCase; mAssemblies.AddRange(assemblies); try { mActionFactory.Register(assemblies); } catch (Exception e_) { Log(LogType.Error, " http api server load controller error " + e_.Message + "[" + e_.StackTrace + "]"); } }
public void Register(params System.Reflection.Assembly[] assemblies) { try { mActionFactory.Register(this.ServerConfig, assemblies); } catch (Exception e_) { Log(null, new ServerLogEventArgs(" http api server load controller error " + e_.Message, LogType.Error)); } }