예제 #1
0
    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() );
    }
예제 #2
0
    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 );
        }
    }