c# - How to see who consumes my webservice -


Is there any way to see what uses my web service and how does it use it? Is there any logging system for this?

My consumer is not sure whether he is connected to my web service or not, and I can not see him.

You can use one of the logging libraries such as

If your service is a WCF service, an operation behavior will take you every time to take action every time

  internal category operation logger behavior: IOperationBehavior {Public Zero AddBindingParameters (Operation Description OperationDelection, Systems Service Model. Channel BindingPamatorColling Binding Permanents) {} General Generic voidDelClientBehavior (Operation Description) OperationDescription, Client Operation Client Operation) {} Public Owned Deliver Dispatcher (Operation Description OperationDoctionation, Dispatch Operation Dispatch Operation) {Dispatches Operation. Parameter Inspector.ed (New Operation Logger ()); } Public Zero Validation (Operation Description Operations) {}} Internal Category Operation Logger Attribute: Specialty, ICentVactViewer {Public Zero AddBindingParameters (Contract Details, Contract Details, Service End Point Endpoint, BindingPamatorColling Binding Parameter) {} Public Zero ApplyClaimBewiki Description Contract, Service End Point Endpoint, Client Time Clients Client) {} Public Nine Apply Dispatch Behair (Contract Agreement Contract Statement, Service End Point Endpoint, Dispatcherment DispatchmentMem) {foreach (Description in Operation Description Operation Agreement) (If Operation Description Details (Includes Behaviens (Typef (Operation Logbievier) ) (Operation Dictionary. Behavior.ad (New Operation Logger Behavior);}}} Public Zero Valid (Agreement Contract Contract Details, Service End Point Endpoint) {}} Internal Category Operation Logger: IParameterInspector {///  /// is called before an operation. /// & lt; / summary & gt; // /  

Comments