Пример #1
0
        public ActionResult SendSomethigAgain(int id)
        {
            ServiceReference.WcfServiceClient client = new ServiceReference.WcfServiceClient();
            client.ModifySoapData(id);

            return(View());
        }
Пример #2
0
        public ActionResult SendSomethig(int id)
        {
            ServiceReference.WcfServiceClient client = new ServiceReference.WcfServiceClient();
            var whatever = client.SomeSoapData(id);

            return(View());
        }
Пример #3
0
        public ActionResult Index6()
        {
            ServiceReference.WcfServiceClient client = new ServiceReference.WcfServiceClient();
            var data = client.GetPatients5();

            ViewData["message"] = data;
            return(View());
        }
Пример #4
0
        public ActionResult Details(int id)
        {
            ServiceReference.WcfServiceClient client = new ServiceReference.WcfServiceClient();
            var allergies = client.GetPatientDetails(id);

            _logger.LogInformation("<mvc client> request details of patient ID {0}", id);

            return(View(allergies));
        }
        public static void Main(string[] args)
        {
            Thread.Sleep(5000);
            var service = new ServiceReference.WcfServiceClient();
            Visa visa = new Visa("Monaco", DateTime.Now, DateTime.Now);
            User user1 = new User("Aaron", "Ramsey", DateTime.Now, 123, Gender.Male, new Visa[] { visa });
            service.Add(user1);
            Console.ReadKey();

            Console.WriteLine("Press any key to run ordinary check");
            Console.ReadKey();
            OrdinaryWorkCheck();
            Console.WriteLine("Press any key to run multithreading check");

            Console.ReadKey();

            Thread thread = new Thread(new ThreadStart(CheckWithMultiThreading));
            thread.Start();
            Console.ReadKey();
            cts.Cancel();
            thread.Join();
            Console.WriteLine("Bingo!");
        }
Пример #6
0
 public ActionResult Index4()
 {
     ServiceReference.WcfServiceClient client = new ServiceReference.WcfServiceClient();
     return(View(client.GetPatients4()));
 }