Skip to content

Commit

Permalink
Improve ActivationData shutdown process (#9018)
Browse files Browse the repository at this point in the history
* Fix termination condition in ActivationMigrationManager.AcceptMigratingGrains

* Improve ActivationData shutdown process

* Use file-scoped namespaces in ActivationData
  • Loading branch information
ReubenBond committed May 21, 2024
1 parent ee66510 commit 3d7343e
Show file tree
Hide file tree
Showing 4 changed files with 1,508 additions and 1,515 deletions.
11 changes: 11 additions & 0 deletions src/Orleans.Core.Abstractions/Core/DeactivationReason.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,16 @@ public DeactivationReason(DeactivationReasonCode code, Exception exception, stri
/// Gets the exception which resulted in deactivation.
/// </summary>
public Exception Exception { get; }

/// <inheritdoc/>
public override string ToString()
{
if (Exception is not null)
{
return $"{ReasonCode}: {Description}. Exception: {Exception}";
}

return $"{ReasonCode}: {Description}";
}
}
}

0 comments on commit 3d7343e

Please sign in to comment.