SendMessageChannelCache Constructor (ChannelCacheSettings, ChannelCacheSettings, Boolean)

.NET Framework (current version)
 

Initializes a new instance of the SendMessageChannelCache class with custom factory cache settings, custom channel cache settings, and a value that indicates whether to turn caching on.

Namespace:   System.ServiceModel.Activities
Assembly:  System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)

public SendMessageChannelCache(
	ChannelCacheSettings factorySettings,
	ChannelCacheSettings channelSettings,
	bool allowUnsafeCaching
)

Parameters

factorySettings
Type: System.ServiceModel.Activities.ChannelCacheSettings

The cache settings for cached channel factories.

channelSettings
Type: System.ServiceModel.Activities.ChannelCacheSettings

The cache settings for cached channels.

allowUnsafeCaching
Type: System.Boolean

true to turn caching on; otherwise, false.

By default, the cache is only available for Send activities that don’t use endpoints defined in configuration. However, if you want to turn caching on in this case call this constructor with the allowUnsafeCaching parameter set to true. Next, add the new instance of this class as an extension to a workflow service host or a workflow instance.

For more information about channel factories, see ChannelFactory and ChannelFactory<TChannel>.

.NET Framework
Available since 4.0
Return to top
Show: