-
Notifications
You must be signed in to change notification settings - Fork 1
willr/WcfMonitoringProxy
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
WCF Monitoring Proxy
To use:
- Reference the WcfMonitoring project
- Derive from WcfProxyMonitor<T> just as you would ClientBase<T>
- Connect as you want
This proxy will cache the state of all the proxy objects that derive from it. As it hooks
to the events from the ChannelFactory.
The values cached are:
public ProxyState ProxyState { get; set; }
public CommunicationState CommState { get; set; }
public int InstanceId { get; set; }
public Uri ConnectionVia { get; set; }
public EndpointAddress Endpoint { get; set; }
public DateTime LastUpdate { get; set; }
public string ProxyType { get; set; }
public Guid Guid { get; set; }
To Display the cache call:
class StateHandler
public static Dictionary<int, ConnectionState> GetConnectionStates()
from the same process from where you are connecting.
WcfConsole.Program.cs shows and example of displaying the cached values from the console program.
ThanksAbout
Subclass of a WCF proxy that hooks to the proxy event to keep track of the status of the proxys
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published