зеркало из https://github.com/microsoft/MIMWAL.git
FIx for GitHub Issue #62 - SqlParameter is not marked as serializable
This commit is contained in:
Родитель
9bb6e90222
Коммит
c1f8d58fd0
|
@ -22,7 +22,7 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary
|
|||
/// Build Number (MMDD)
|
||||
/// Revision (if any on the same day)
|
||||
/// </summary>
|
||||
internal const string Version = "2.18.0318.0";
|
||||
internal const string Version = "2.18.1110.0";
|
||||
|
||||
/// <summary>
|
||||
/// File Version information for the assembly consists of the following four values:
|
||||
|
@ -31,6 +31,6 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary
|
|||
/// Build Number (MMDD)
|
||||
/// Revision (if any on the same day)
|
||||
/// </summary>
|
||||
internal const string FileVersion = "2.18.0318.0";
|
||||
internal const string FileVersion = "2.18.1110.0";
|
||||
}
|
||||
}
|
|
@ -13,9 +13,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
#region Namespaces Declarations
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Workflow.Activities;
|
||||
using System.Workflow.ComponentModel;
|
||||
using MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common;
|
||||
|
@ -173,6 +175,35 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines the action taken when the activity has completed execution.
|
||||
/// </summary>
|
||||
/// <param name="executionContext">The execution context of the activity.</param>
|
||||
protected override void OnSequenceComplete(ActivityExecutionContext executionContext)
|
||||
{
|
||||
Logger.Instance.WriteMethodEntry(EventIdentifier.AddDelayOnSequenceComplete);
|
||||
|
||||
try
|
||||
{
|
||||
// Clear the variable cache for the expression evaluator
|
||||
// so that any variables, such as SqlParameter, not marked as serializable does not cause dehyration issues.
|
||||
if (this.ActivityExpressionEvaluator != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache.Keys != null)
|
||||
{
|
||||
List<string> variables = this.ActivityExpressionEvaluator.VariableCache.Keys.ToList();
|
||||
foreach (string variable in variables)
|
||||
{
|
||||
this.ActivityExpressionEvaluator.VariableCache[variable] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Logger.Instance.WriteMethodExit(EventIdentifier.AddDelayOnSequenceComplete);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the ExecuteCode event of the ParseExpressions CodeActivity.
|
||||
/// </summary>
|
||||
|
|
|
@ -590,6 +590,35 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines the action taken when the activity has completed execution.
|
||||
/// </summary>
|
||||
/// <param name="executionContext">The execution context of the activity.</param>
|
||||
protected override void OnSequenceComplete(ActivityExecutionContext executionContext)
|
||||
{
|
||||
Logger.Instance.WriteMethodEntry(EventIdentifier.CreateResourceOnSequenceComplete);
|
||||
|
||||
try
|
||||
{
|
||||
// Clear the variable cache for the expression evaluator
|
||||
// so that any variables, such as SqlParameter, not marked as serializable does not cause dehyration issues.
|
||||
if (this.ActivityExpressionEvaluator != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache.Keys != null)
|
||||
{
|
||||
List<string> variables = this.ActivityExpressionEvaluator.VariableCache.Keys.ToList();
|
||||
foreach (string variable in variables)
|
||||
{
|
||||
this.ActivityExpressionEvaluator.VariableCache[variable] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Logger.Instance.WriteMethodExit(EventIdentifier.CreateResourceOnSequenceComplete);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the ExecuteCode event of the ParseDefinitions CodeActivity.
|
||||
/// </summary>
|
||||
|
|
|
@ -362,6 +362,35 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines the action taken when the activity has completed execution.
|
||||
/// </summary>
|
||||
/// <param name="executionContext">The execution context of the activity.</param>
|
||||
protected override void OnSequenceComplete(ActivityExecutionContext executionContext)
|
||||
{
|
||||
Logger.Instance.WriteMethodEntry(EventIdentifier.DeleteResourcesOnSequenceComplete);
|
||||
|
||||
try
|
||||
{
|
||||
// Clear the variable cache for the expression evaluator
|
||||
// so that any variables, such as SqlParameter, not marked as serializable does not cause dehyration issues.
|
||||
if (this.ActivityExpressionEvaluator != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache.Keys != null)
|
||||
{
|
||||
List<string> variables = this.ActivityExpressionEvaluator.VariableCache.Keys.ToList();
|
||||
foreach (string variable in variables)
|
||||
{
|
||||
this.ActivityExpressionEvaluator.VariableCache[variable] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Logger.Instance.WriteMethodExit(EventIdentifier.DeleteResourcesOnSequenceComplete);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the ExecuteCode event of the PrepareResolve CodeActivity.
|
||||
/// </summary>
|
||||
|
|
|
@ -412,6 +412,35 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines the action taken when the activity has completed execution.
|
||||
/// </summary>
|
||||
/// <param name="executionContext">The execution context of the activity.</param>
|
||||
protected override void OnSequenceComplete(ActivityExecutionContext executionContext)
|
||||
{
|
||||
Logger.Instance.WriteMethodEntry(EventIdentifier.GenerateUniqueValueOnSequenceComplete);
|
||||
|
||||
try
|
||||
{
|
||||
// Clear the variable cache for the expression evaluator
|
||||
// so that any variables, such as SqlParameter, not marked as serializable does not cause dehyration issues.
|
||||
if (this.ActivityExpressionEvaluator != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache.Keys != null)
|
||||
{
|
||||
List<string> variables = this.ActivityExpressionEvaluator.VariableCache.Keys.ToList();
|
||||
foreach (string variable in variables)
|
||||
{
|
||||
this.ActivityExpressionEvaluator.VariableCache[variable] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Logger.Instance.WriteMethodExit(EventIdentifier.GenerateUniqueValueOnSequenceComplete);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resolves the value filter.
|
||||
/// </summary>
|
||||
|
|
|
@ -408,6 +408,35 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines the action taken when the activity has completed execution.
|
||||
/// </summary>
|
||||
/// <param name="executionContext">The execution context of the activity.</param>
|
||||
protected override void OnSequenceComplete(ActivityExecutionContext executionContext)
|
||||
{
|
||||
Logger.Instance.WriteMethodEntry(EventIdentifier.RequestApprovalOnSequenceComplete);
|
||||
|
||||
try
|
||||
{
|
||||
// Clear the variable cache for the expression evaluator
|
||||
// so that any variables, such as SqlParameter, not marked as serializable does not cause dehyration issues.
|
||||
if (this.ActivityExpressionEvaluator != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache.Keys != null)
|
||||
{
|
||||
List<string> variables = this.ActivityExpressionEvaluator.VariableCache.Keys.ToList();
|
||||
foreach (string variable in variables)
|
||||
{
|
||||
this.ActivityExpressionEvaluator.VariableCache[variable] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Logger.Instance.WriteMethodExit(EventIdentifier.RequestApprovalOnSequenceComplete);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the ExecuteCode event of the ParseExpressions CodeActivity.
|
||||
/// </summary>
|
||||
|
|
|
@ -21,6 +21,7 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Management.Automation;
|
||||
using System.Management.Automation.Runspaces;
|
||||
using System.Reflection;
|
||||
|
@ -516,6 +517,35 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines the action taken when the activity has completed execution.
|
||||
/// </summary>
|
||||
/// <param name="executionContext">The execution context of the activity.</param>
|
||||
protected override void OnSequenceComplete(ActivityExecutionContext executionContext)
|
||||
{
|
||||
Logger.Instance.WriteMethodEntry(EventIdentifier.RunPowerShellScriptOnSequenceComplete);
|
||||
|
||||
try
|
||||
{
|
||||
// Clear the variable cache for the expression evaluator
|
||||
// so that any variables, such as SqlParameter, not marked as serializable does not cause dehyration issues.
|
||||
if (this.ActivityExpressionEvaluator != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache.Keys != null)
|
||||
{
|
||||
List<string> variables = this.ActivityExpressionEvaluator.VariableCache.Keys.ToList();
|
||||
foreach (string variable in variables)
|
||||
{
|
||||
this.ActivityExpressionEvaluator.VariableCache[variable] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Logger.Instance.WriteMethodExit(EventIdentifier.RunPowerShellScriptOnSequenceComplete);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets up the PowerShell shell stream event handlers.
|
||||
/// </summary>
|
||||
|
|
|
@ -525,6 +525,35 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines the action taken when the activity has completed execution.
|
||||
/// </summary>
|
||||
/// <param name="executionContext">The execution context of the activity.</param>
|
||||
protected override void OnSequenceComplete(ActivityExecutionContext executionContext)
|
||||
{
|
||||
Logger.Instance.WriteMethodEntry(EventIdentifier.SendEmailNotificationOnSequenceComplete);
|
||||
|
||||
try
|
||||
{
|
||||
// Clear the variable cache for the expression evaluator
|
||||
// so that any variables, such as SqlParameter, not marked as serializable does not cause dehyration issues.
|
||||
if (this.ActivityExpressionEvaluator != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache.Keys != null)
|
||||
{
|
||||
List<string> variables = this.ActivityExpressionEvaluator.VariableCache.Keys.ToList();
|
||||
foreach (string variable in variables)
|
||||
{
|
||||
this.ActivityExpressionEvaluator.VariableCache[variable] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Logger.Instance.WriteMethodExit(EventIdentifier.SendEmailNotificationOnSequenceComplete);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts the specified email template resolved expression into a Guid object
|
||||
/// </summary>
|
||||
|
|
|
@ -440,6 +440,35 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines the action taken when the activity has completed execution.
|
||||
/// </summary>
|
||||
/// <param name="executionContext">The execution context of the activity.</param>
|
||||
protected override void OnSequenceComplete(ActivityExecutionContext executionContext)
|
||||
{
|
||||
Logger.Instance.WriteMethodEntry(EventIdentifier.UpdateResourcesOnSequenceComplete);
|
||||
|
||||
try
|
||||
{
|
||||
// Clear the variable cache for the expression evaluator
|
||||
// so that any variables, such as SqlParameter, not marked as serializable does not cause dehyration issues.
|
||||
if (this.ActivityExpressionEvaluator != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache.Keys != null)
|
||||
{
|
||||
List<string> variables = this.ActivityExpressionEvaluator.VariableCache.Keys.ToList();
|
||||
foreach (string variable in variables)
|
||||
{
|
||||
this.ActivityExpressionEvaluator.VariableCache[variable] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Logger.Instance.WriteMethodExit(EventIdentifier.UpdateResourcesOnSequenceComplete);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the ExecuteCode event of the Prepare CodeActivity.
|
||||
/// </summary>
|
||||
|
|
|
@ -388,6 +388,35 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Activitie
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines the action taken when the activity has completed execution.
|
||||
/// </summary>
|
||||
/// <param name="executionContext">The execution context of the activity.</param>
|
||||
protected override void OnSequenceComplete(ActivityExecutionContext executionContext)
|
||||
{
|
||||
Logger.Instance.WriteMethodEntry(EventIdentifier.VerifyRequestOnSequenceComplete);
|
||||
|
||||
try
|
||||
{
|
||||
// Clear the variable cache for the expression evaluator
|
||||
// so that any variables, such as SqlParameter, not marked as serializable does not cause dehyration issues.
|
||||
if (this.ActivityExpressionEvaluator != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache != null
|
||||
&& this.ActivityExpressionEvaluator.VariableCache.Keys != null)
|
||||
{
|
||||
List<string> variables = this.ActivityExpressionEvaluator.VariableCache.Keys.ToList();
|
||||
foreach (string variable in variables)
|
||||
{
|
||||
this.ActivityExpressionEvaluator.VariableCache[variable] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Logger.Instance.WriteMethodExit(EventIdentifier.VerifyRequestOnSequenceComplete);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handles the ExecuteCode event of the Prepare CodeActivity.
|
||||
/// </summary>
|
||||
|
|
|
@ -128,6 +128,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
|
|||
/// </summary>
|
||||
public const int CreateResourceActorIsNotValueExpressionCondition = 10115;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for CreateResource OnSequenceComplete events
|
||||
/// </summary>
|
||||
public const int CreateResourceOnSequenceComplete = 10116;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for DeleteResources Constructor events
|
||||
/// </summary>
|
||||
|
@ -188,6 +193,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
|
|||
/// </summary>
|
||||
public const int DeleteResourcesActorIsNotValueExpressionCondition = 10212;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for DeleteResources OnSequenceComplete events
|
||||
/// </summary>
|
||||
public const int DeleteResourcesOnSequenceComplete = 10213;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for GenerateUniqueValue Constructor events
|
||||
/// </summary>
|
||||
|
@ -263,6 +273,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
|
|||
/// </summary>
|
||||
public const int GenerateUniqueValueRepositionUniquenessKey = 10315;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for GenerateUniqueValue OnSequenceComplete events
|
||||
/// </summary>
|
||||
public const int GenerateUniqueValueOnSequenceComplete = 10316;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for RunPowerShellScript Constructor events
|
||||
/// </summary>
|
||||
|
@ -303,6 +318,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
|
|||
/// </summary>
|
||||
public const int RunPowerShellScriptActivityExecutionConditionSatisfiedCondition = 10408;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for RunPowerShellScript OnSequenceComplete events
|
||||
/// </summary>
|
||||
public const int RunPowerShellScriptOnSequenceComplete = 10409;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for UpdateResources Constructor events
|
||||
/// </summary>
|
||||
|
@ -368,6 +388,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
|
|||
/// </summary>
|
||||
public const int UpdateResourcesForEachDynamicStringForResolutionChildCompleted = 10513;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for UpdateResources OnSequenceComplete events
|
||||
/// </summary>
|
||||
public const int UpdateResourcesOnSequenceComplete = 10514;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for VerifyRequest Constructor events
|
||||
/// </summary>
|
||||
|
@ -433,6 +458,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
|
|||
/// </summary>
|
||||
public const int VerifyRequestActivityExecutionConditionSatisfiedCondition = 10613;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for VerifyRequest OnSequenceComplete events
|
||||
/// </summary>
|
||||
public const int VerifyRequestOnSequenceComplete = 10614;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for AsynchronousCreateResource Constructor events
|
||||
/// </summary>
|
||||
|
@ -1458,6 +1488,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
|
|||
/// </summary>
|
||||
public const int AddDelayTraceWakeupExecuteCode = 12506;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for AddDelay OnSequenceComplete events
|
||||
/// </summary>
|
||||
public const int AddDelayOnSequenceComplete = 12507;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for SendEmailNotification Constructor events
|
||||
/// </summary>
|
||||
|
@ -1611,6 +1646,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
|
|||
/// </summary>
|
||||
public const int SendEmailNotificationQueriesHaveNoValueExpressionsCondition = 12630;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for SendEmailNotification OnSequenceComplete events
|
||||
/// </summary>
|
||||
public const int SendEmailNotificationOnSequenceComplete = 12631;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for RequestApproval Constructor events
|
||||
/// </summary>
|
||||
|
@ -1761,6 +1801,11 @@ namespace MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.Common
|
|||
/// </summary>
|
||||
public const int RequestApprovalFormatRecipient = 12729;
|
||||
|
||||
/// <summary>
|
||||
/// The event identifier for RequestApproval OnSequenceComplete events
|
||||
/// </summary>
|
||||
public const int RequestApprovalOnSequenceComplete = 12730;
|
||||
|
||||
#endregion
|
||||
|
||||
#region "Informational Events"
|
||||
|
|
Загрузка…
Ссылка в новой задаче