Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AllowUnsafeCaching Property

SendMessageChannelCacheElement.AllowUnsafeCaching Property

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft