ChannelFactory resolving an address for a different tenant

Rohit Kamble 0 Reputation points
2023-06-06T08:10:50.89+00:00

We have a multi tenant architecture in the cloud. I have noticed a strange behavior where often App1 of tenant 1 calls App2 of tenant 2. This is not a frequent behavior and happens few times a day. Below is a generic code snippet that calls App2 from App1. Each tenants app urls are unique. Logging of addresses from App1 shows the correct values. But logging values at App2 shows the request originated from a different tenant. Could it be possible that ChannelFactory caches the values or something else that I am missing.

public SvcProxyBase(string endPointName)
{
	EndpointAddress EA = new EndpointAddress(GetBaseAddress(endPointName));
	_endPointName = endPointName;
	_eA = EA;
	ClientBase<T>.CacheSetting = CacheSetting.AlwaysOn;

	_factory = new ChannelFactory<T>(endPointName, EA);
	System.Diagnostics.Debug.WriteLine("WCF ENDPOINT: " + _factory.Endpoint);
}

Thanks

Rohit

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,400 questions
{count} votes