c# Singleton Pool
₹1500-12500 INR
Dibayar semasa penghantaran
Pool project needs to be developed to enhance the performance of air, hotel and car and future applications by providing connection tokens/objects readily available to be used by the applications following the requirements below.
1. A connection pool needs to be created for every SupplierID provided to every client of Nanojot in a singleton class. This singleton should be instantiated as soon as the IIS starts.
2. There should be three methods available in the singleton:
a. One for the applications to borrow connection by SupplierID of client and SupplierID should be retrieved from the database based on the domain from which request has been received.
b. Second for the application to return connection to the pool as soon as the purpose of borrowing is complete.
c. Third should be created to create a connection by passing SupplierID to the method and method should retrieve the URL and credentials to create a connection from the credential cache created in the constructor of class.
3. A separate thread should be created to keep checking every connection in the pool after time specified in the [login to view URL], if the connections in every pool is expired or not and if connection is expired, this thread should call the function to get a fresh connection and replace the expired connection.
ID Projek: #20254038