Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("=== Application Started ====");

            extensionsWatcher                     = new FileSystemWatcher(extensionsDirectory);
            extensionsWatcher.Created            += extensionsWatcher_Created;
            extensionsWatcher.Deleted            += extensionsWatcher_Deleted;
            extensionsWatcher.EnableRaisingEvents = true;

            container = new LoanCalculatorContainer(extensionsDirectory);

            PrintPluginInfo();

            foreach (var loanCalculator in container.Extensions)
            {
                Console.WriteLine(loanCalculator.Value.GetInterest(10000, 12.0d, 3));
            }
            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("=== Application Started ====");

            extensionsWatcher = new FileSystemWatcher(extensionsDirectory);
            extensionsWatcher.Created += extensionsWatcher_Created;
            extensionsWatcher.Deleted += extensionsWatcher_Deleted;
            extensionsWatcher.EnableRaisingEvents = true;

            container = new LoanCalculatorContainer(extensionsDirectory);

            PrintPluginInfo();

            foreach (var loanCalculator in container.Extensions)
            {
                Console.WriteLine(loanCalculator.Value.GetInterest(10000, 12.0d, 3));
            }
            Console.ReadLine();
        }