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); } }
public CatalogController(ILibraryServices assets, ICheckoutServices checkouts) { _assets = assets; _checkouts = checkouts; }
public LibraryWorkController(ILibraryServices context, IMapper mapper, IConverter converter) { _context = context; _converter = converter; _mapper = mapper; }