SendMessageChannelCacheElement.AllowUnsafeCaching Property

.NET Framework (current version)

Gets a value indicating whether the cache associated with an instance of workflow is turned on or off.

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

[ConfigurationPropertyAttribute("allowUnsafeCaching", DefaultValue = false)]
public bool AllowUnsafeCaching { get; set; }

Property Value

Type: System.Boolean

true if the workflow instance cache is turned on; otherwise, false.

In the majority of the cases when there are no custom bindings and/or behaviors, we turn on cache by default. In the case where the user did plug in their own binding and behaviors, the caching of the channel factories could become unsecure, therefore, we turn off our cache by default. But the user can set the AllowUnsafeCachingback on which requires them to carefully read the appropriate MSDN document and make a decision that strikes a balanace between security and performance.

.NET Framework
Available since 4.0
Return to top