public void TestPlugins() { Implementations.Resolver resolver = new Implementations.Resolver(); AppendPaths(resolver); //resolver.Load(); Console.WriteLine("*** Resolver Before"); Console.WriteLine(resolver.ToString()); //Definitions.Account account = // (Definitions.Account)resolver.CreateInstance( ExternalServer, "ExternalServers.LocalBankAccount" ); //Console.WriteLine( "*** Resolver After" ); //Console.WriteLine( resolver.ToString() ); }
private void AppendPaths(Implementations.Resolver resolver) { OperatingSystem os = System.Environment.OSVersion; if ((int)os.Platform == 128) { // This is Linux //resolver.AppendPath( LinuxPath); } else { //resolver.AppendPath( WindowsPath ); } }