Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using System;
  2. using System.ServiceModel;
  3. using MovieLib.Services;
  4.  
  5. namespace ConsoleHostApplication
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. ServiceHost hostMovieManager = new ServiceHost(typeof(MovieManager));
  12. hostMovieManager.Open();
  13. Console.WriteLine("Service Launched,Press Enter to Exit!");
  14. Console.ReadLine();
  15. hostMovieManager.Close();
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement