c# - Two throttling for one WCF Service -
i developing system under wcf services contain 2 modules , service self hosted. 1 of module has handle multiple clients whereas module has handle 1 request @ time direct file download. other request on module set on queue.
system should hold other request if module 2 should handle requests module
- how can use wcf service throttling achieve this? tried implementing 2 throttling did not work.
- is possible count number of pending request in wcf throttling?
i trying done using mysql hold queue not able hold current request module 2. possible hold user request , process after current process completed?
the best possible way obtain 2 throttling under 1 host separate interface service , define individual endpoints. allowed me use 2 throttling under 1 host under 2 different ports (which no problem ;)).
about counting number of pending request, think need implement performance counter taking support these links:
- how can access c# performance counter in code?
- https://support.microsoft.com/en-us/kb/316365?wa=wsignin1.0
i update if able implement pending request count in wcf service.
Comments
Post a Comment