SendMessageChannelCacheElement.AllowUnsafeCaching Property

Definition

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

public:
 property bool AllowUnsafeCaching { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("allowUnsafeCaching", DefaultValue=false)]
public bool AllowUnsafeCaching { get; set; }
[<System.Configuration.ConfigurationProperty("allowUnsafeCaching", DefaultValue=false)>]
member this.AllowUnsafeCaching : bool with get, set
Public Property AllowUnsafeCaching As Boolean

Property Value

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

Attributes

Remarks

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 AllowUnsafeCaching back on which requires them to carefully read the appropriate MSDN document and make a decision that strikes a balance between security and performance.

Applies to