コード例 #1
0
ファイル: Server.cs プロジェクト: JBeni/TSP.NET
        static private void StartServer()
        {
            LibraryServices serviceLibrary = new LibraryServices();

            host = new ServiceHost(serviceLibrary, new Uri("http://localhost:1000/services"));

            try
            {
                host.Open();

                ILibraryServices singletonInstance = (ILibraryServices)host.SingletonInstance;
                LibraryServices  svp = (LibraryServices)singletonInstance;
                AfisareEndpoint();
                Console.WriteLine("Server lansat in executie cu succes! Asteptare cereri de la clienti...");
            }
            catch (Exception ex)
            {
                Console.WriteLine("[exception]: " + ex);
            }
        }
コード例 #2
0
 public CatalogController(ILibraryServices assets, ICheckoutServices checkouts)
 {
     _assets    = assets;
     _checkouts = checkouts;
 }
コード例 #3
0
 public LibraryWorkController(ILibraryServices context, IMapper mapper, IConverter converter)
 {
     _context   = context;
     _converter = converter;
     _mapper    = mapper;
 }