title: How to avoid passing CancellationToken all over my dot net core code base?
body: <p>I have a basic web app with dot net core and entity framework.
  I was told to pass the cancellationToken all the way from the controller at the top to the entity framework at the bottom. My code looks kind of like this:</p>
  
  <pre><code>    public Task&lt;IEnumerable&lt;UserDto&gt;&gt; GetAllUserAsync(string accountId, CancellationToken cancellationToken = default)
      {
          return _userService.GetAllUserAsync(accountId, cancellationToken);
      }
  </code></pre>
  
  <p>What should I do? I understand that if I remove cancellationToken then a canceled http request will not trigger a canceled db query.</p>
  
  <p>Is there any way I can have the benefits of cancelation token but without the extra parameter polluting method signatures?</p>