src/Orleans.Core.Abstractions/Cancellation/GrainCancellationToken.cs
/// <summary>
/// Subscribes the provided grain reference to cancellation notifications.
/// </summary>
/// <param name="runtime">The grain cancellation runtime.</param>
/// <param name="grainReference">The grain reference to add.</param>
Subscribes the provided grain reference to cancellation notifications.
Subscribes the provided grain reference to cancellation notifications .
internal void AddGrainReference(IGrainCancellationTokenRuntime runtime, GrainReference grainReference)
        {
            if (_cancellationTokenRuntime == null)
                _cancellationTokenRuntime = runtime;
            _targetGrainReferences.TryAdd(grainReference.GrainId, grainReference);
        }
internal void AddGrainReference ( IGrainCancellationTokenRuntime runtime , GrainReference grainReference ) { if ( _cancellationTokenRuntime == null ) _cancellationTokenRuntime = runtime ; _targetGrainReferences . TryAdd ( grainReference . GrainId , grainReference ) ; }
Subscribes the provided grain reference to cancellation notifications.
Subscribes the provided grain reference to cancellation notifications .
runtime
IGrainCancellationTokenRuntime
The grain cancellation runtime.
The grain cancellation runtime .
grainReference
GrainReference
The grain reference to add.
The grain reference to add .