Skip to content

Subclass of a WCF proxy that hooks to the proxy event to keep track of the status of the proxys

Notifications You must be signed in to change notification settings

willr/WcfMonitoringProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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. 
	
	Thanks

About

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

No packages published