You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Runtime/Middleware/CancellationContext.cs

15 lines
338 B

namespace Connected.ServiceModel
{
internal class CancellationContext : ICancellationContext
{
public CancellationContext(IContext context)
{
Context = context;
}
public CancellationToken CancellationToken => Context is null ? CancellationToken.None : Context.CancellationToken;
private IContext Context { get; }
}
}