Ejemplo n.º 1
0
        public void ShareKcy()
        {
            var settings = new TestSettings();

            var kcyConnector = new KarmakracyConnector(settings);
            var keyExtractor = new KeyWordExtractor();

            var kcyService = new KarmakracyService(kcyConnector, keyExtractor);

            string kcy = kcyService.Short("http://www.katayunos.com");

            kcyService.Share("Hola Katayuners", kcy);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to The AWESOME Karmakracy URL Dispatcher!!!!!!!!!!");

            var connector = new KarmakracyConnector(Properties.Settings.Default);
            var keyExtractor = new KeyWordExtractor();
            var kcyService = new KarmakracyService(connector, keyExtractor);

            var plainTextParser = new PlainTextParser(kcyService);
            var daemon = new MailDaemon(plainTextParser, kcyService, Properties.Settings.Default);

            daemon.Start();

            Console.ReadLine();
        }