1- using Orleans . Runtime ;
1+ namespace Orleans . TestKit ;
22
3- namespace Orleans . TestKit ;
4-
5- /// <summary>
6- /// Grain context used for tests.
7- /// </summary>
3+ /// <summary>Grain context used for tests.</summary>
84public sealed class TestGrainActivationContext : IGrainContext
95{
106 /// <inheritdoc/>
@@ -27,14 +23,10 @@ public sealed class TestGrainActivationContext : IGrainContext
2723 /// <inheritdoc/>
2824 public object GrainInstance { get ; set ; } = default ! ;
2925
30- public void Migrate ( Dictionary < string , object > ? requestContext , CancellationToken cancellationToken = new CancellationToken ( ) ) => throw new NotImplementedException ( ) ;
31-
3226 /// <inheritdoc/>
3327 public GrainReference GrainReference { get ; set ; } = default ! ;
3428
35- /// <summary>
36- /// Gets or sets the grain type used for this test context.
37- /// </summary>
29+ /// <summary>Gets or sets the grain type used for this test context.</summary>
3830 public Type GrainType { get ; set ; } = default ! ;
3931
4032 /// <inheritdoc/>
@@ -46,28 +38,36 @@ public sealed class TestGrainActivationContext : IGrainContext
4638 /// <inheritdoc/>
4739 public void Activate ( Dictionary < string , object > requestContext , CancellationToken ? cancellationToken = null ) => throw new NotImplementedException ( ) ;
4840
41+ public void Activate ( Dictionary < string , object > ? requestContext , CancellationToken cancellationToken = new CancellationToken ( ) ) => throw new NotImplementedException ( ) ;
42+
4943 /// <inheritdoc/>
5044 public void Deactivate ( DeactivationReason deactivationReason , CancellationToken ? cancellationToken = null ) => throw new NotImplementedException ( ) ;
5145
46+ public void Deactivate ( DeactivationReason deactivationReason , CancellationToken cancellationToken = new CancellationToken ( ) ) => throw new NotImplementedException ( ) ;
47+
5248 /// <inheritdoc/>
5349 public bool Equals ( IGrainContext ? other ) => ReferenceEquals ( this , other ) ;
5450
5551 /// <inheritdoc/>
5652 public TComponent GetComponent < TComponent > ( ) where TComponent : class => throw new NotImplementedException ( ) ;
5753
54+ /// <inheritdoc/>
55+ public object ? GetComponent ( Type componentType ) => throw new NotImplementedException ( ) ;
56+
5857 /// <inheritdoc/>
5958 public TTarget GetTarget < TTarget > ( ) where TTarget : class => throw new NotImplementedException ( ) ;
6059
60+ /// <inheritdoc/>
61+ public object ? GetTarget ( ) => throw new NotImplementedException ( ) ;
62+
63+ public void Migrate ( Dictionary < string , object > ? requestContext , CancellationToken cancellationToken = new CancellationToken ( ) ) => throw new NotImplementedException ( ) ;
64+
6165 /// <inheritdoc/>
6266 public void Migrate ( Dictionary < string , object > requestContext , CancellationToken ? cancellationToken = null ) => throw new NotImplementedException ( ) ;
6367
6468 /// <inheritdoc/>
6569 public void ReceiveMessage ( object message ) => throw new NotImplementedException ( ) ;
6670
67- public void Activate ( Dictionary < string , object > ? requestContext , CancellationToken cancellationToken = new CancellationToken ( ) ) => throw new NotImplementedException ( ) ;
68-
69- public void Deactivate ( DeactivationReason deactivationReason , CancellationToken cancellationToken = new CancellationToken ( ) ) => throw new NotImplementedException ( ) ;
70-
7171 /// <inheritdoc/>
7272 public void Rehydrate ( IRehydrationContext context ) => throw new NotImplementedException ( ) ;
7373
0 commit comments