Export (0) Print
Expand All

SendMessageChannelCache Constructor (ChannelCacheSettings, ChannelCacheSettings, Boolean)

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

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft