Exemple #1
0
        private static void Main(string[] args)
        {
            using (WCFService service = new WCFService("AppService", typeof(UserAccountService)))
            {
                service.Open();

                Console.ReadLine();
            }
        }
Exemple #2
0
        private static void Main(string[] args)
        {
            using (WCFService service = new WCFService("ReplicationService", typeof(ReplicationService)))
            {
                service.Open();

                Console.ReadLine();
            }
            Console.ReadLine();
        }
Exemple #3
0
        private static void Main(string[] args)
        {
            repService = WCFClient.GetInstance().GetConnection <IReplicationContract>("ReplicationService");

            Task.Run(() =>
            {
                Replicate();
            });

            using (WCFService service = new WCFService("AuthService", typeof(UserAuthService)))
            {
                service.Open();
                using (WCFService authservice = new WCFService("AppAuthService", typeof(AppAuthService)))
                {
                    authservice.Open();


                    Console.ReadLine();
                }
                Console.ReadLine();
            }
            Console.ReadLine();
        }