/// <summary> /// Default constructor. /// </summary> public ConfiguratorApplication() { var assemblyResolver = new Microsoft.Practices.AssemblyManagement.AssemblyResolver(Settings.Default.AssemblyResolvePaths.Cast <string>().ToArray()); //attaches the resolver to the current AppDomain. assemblyResolver.Init(); }
/// <summary> /// Application entry point. /// </summary> /// <param name="args">Command line arguments.</param> static int Main(string[] args) { //create and initialize an assembly resolver that will allow Cerberus to find OSLEBot libraries var assemblyResolver = new Microsoft.Practices.AssemblyManagement.AssemblyResolver(Settings.Default.AssemblyResolvePaths.Cast <string>().ToArray()); //attaches the resolver to the current AppDomain. assemblyResolver.Init(); _instance = new Program(); SetThreadName(); Instance.EnableLogging(); var programResult = Instance.RunProgram(args); Instance.DisableLogging(); return((int)programResult); }