Cancellation Token in .NET | Exploring C# and DOTNET

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 43

  • @daStitches
    @daStitches 9 місяців тому +8

    I would be interested in seeing some of those other patterns you were talking about for handling cancellation tokens!

    • @RahulNath
      @RahulNath  9 місяців тому +1

      Thank you Ralph. Adding this to my list!! Glad you liked this.

  • @thegaribovv
    @thegaribovv 2 місяці тому +1

    I love your explanation style, you always spend good amount of time to show the problem, not just 2-3 sentences.

  • @sureshp34
    @sureshp34 9 місяців тому +1

    Thanks for posting this video, I was requested to post the the cancellation token video a long back ago. This video will helps me to implement in my project. Thanks a lot.

    • @RahulNath
      @RahulNath  9 місяців тому

      Glad it was helpful Suresh! Do let me know if you have any other suggestions.

  • @ChosenHandle
    @ChosenHandle 8 місяців тому

    Your channel is a gem. Really clear delivery of concepts with coherent and easy to follow examples. Thanks for the upload.

    • @RahulNath
      @RahulNath  8 місяців тому

      Glad you think so!

  • @akashkarve1991
    @akashkarve1991 9 місяців тому

    Nice video and very well explained. Would like you to request to create more videos on cancellation token. Cheers !!!

  • @arjunanselvam
    @arjunanselvam 9 місяців тому

    Thanks a lot Rahul. I was reading this topic yesterday. Now you have upload video for the same. I am also watching your aws videos. It is really fantastic.

    • @RahulNath
      @RahulNath  9 місяців тому

      Glad you like it Arjun! Do let me know if you have any suggestions or feedback

  • @kj2w
    @kj2w 9 місяців тому +1

    Yay!!! New Rahul Nath content!!

    • @RahulNath
      @RahulNath  9 місяців тому

      Thank you for your support!!

  • @arsamrahmaan8812
    @arsamrahmaan8812 4 місяці тому

    thanks bro, love from Pakistan. just found your awesome channel and subscribed

    • @RahulNath
      @RahulNath  4 місяці тому

      Glad you are finding the videos helpful Arsam !! And thank you for subscribing 😍

  • @MinistryOfDiscussion
    @MinistryOfDiscussion 8 місяців тому

    Superb Video, glad you made this type of useful contents

  • @duanelakoduk561
    @duanelakoduk561 6 місяців тому

    Great presentation and video series.
    In the console project, you initiate cancellation using a button press. In the API, you demonstrate cancellation when the browser is closed. Is there a way to implement cancellation from a button click in a .NET UI to cancel the API without closing the browser, or through a refresh action?

    • @RahulNath
      @RahulNath  4 місяці тому +1

      Thank you! You should be able to use AbortController! I will try and do a video around this topic.

    • @duanelakoduk561
      @duanelakoduk561 4 місяці тому +1

      @@RahulNath Thanks for the hint, I located the AbortController reference on mdn web docs.

    • @RahulNath
      @RahulNath  4 місяці тому

      @@duanelakoduk561 hope you were able to solve it using that

    • @RahulNath
      @RahulNath  4 місяці тому

      Hey Here's a video I made on that and just published! ua-cam.com/video/tSEc5hXx1TM/v-deo.html

  • @m3coo
    @m3coo 9 місяців тому

    Very helpful! Thanks a lot Rahul

    • @RahulNath
      @RahulNath  9 місяців тому

      Most welcome Faisal!

  • @susantasahoo3457
    @susantasahoo3457 8 місяців тому +1

    Great learning video,thank you..can you please share git path also?

    • @RahulNath
      @RahulNath  8 місяців тому

      Glad you liked it Susanta - Code is available here github.com/rahulpnath/youtube-samples/tree/main/cancellation-token-example

  • @blueLavender-s7f
    @blueLavender-s7f 9 місяців тому +1

    My ask might be basic, but Could you Please add an Example where UI can call a cancellation as in realtime where we cant capture console.keypress or swagger window closure

    • @sivasankaransomaskanthan8264
      @sivasankaransomaskanthan8264 8 місяців тому

      By "UI" Are you referring to desktop or mobile native UI like WinForms , WPF, UNO or Avalonia UI ?

  • @StressedProgrammer
    @StressedProgrammer 4 дні тому

    so whats the optimal answer for "should you use cancellation token in every request?"
    according to me if the request can take more 1 second on your local setup you should use cancellation token

    • @RahulNath
      @RahulNath  3 дні тому

      I have a follow-up video/blog here on 5 Recommended Patterns When Using Cancellation Token in .NET.
      www.rahulpnath.com/blog/cancellation-token-patterns/
      Also, a related on here www.rahulpnath.com/blog/abortcontroller-cancellationtoken-dotnet/
      Hope that helps answer your question.

  • @AkashM20
    @AkashM20 9 місяців тому +1

    Hey Rahul, what is the terminal that you are using

    • @RahulNath
      @RahulNath  9 місяців тому

      Windows Terminal - More details here www.rahulpnath.com/blog/setting-up-windows-terminal/

  • @TellaTrix
    @TellaTrix 9 місяців тому

    Does it cancel database operations? if I requested Cancellation Token does it cancel all long running sql query?

    • @RahulNath
      @RahulNath  9 місяців тому

      Yes it does if you pass along the token.

  • @abuzeromohammed3386
    @abuzeromohammed3386 9 місяців тому

    You are great Sir thank you

    • @RahulNath
      @RahulNath  9 місяців тому +1

      So nice of you - thank you ! And you call me Rahul 😀Do let me know if you have any topic suggestions or feedback

    • @abuzeromohammed3386
      @abuzeromohammed3386 9 місяців тому

      ​@@RahulNath new advance topic like Mico services and how they communice or for me Identity server 4 or you dive in this topic how user can make searching for example and another button for cancel the searching

  • @rahulgadekar5460
    @rahulgadekar5460 9 місяців тому +1

    Hi Rahul can you please make a tutorial on azure durable functions 😊 Thanks in Advance

    • @RahulNath
      @RahulNath  9 місяців тому

      Thank yo ufor the suggestion Rahul. Yes this is on my list!

  • @aijazchauhan865
    @aijazchauhan865 8 місяців тому

    Please please creaate separte video which covers other methods to cancel the operation. it would be very helpfull to me.

  • @carlos.maradiaga
    @carlos.maradiaga 9 місяців тому

    Excelente, thank you for sharing this topic. Do you have this source code in somewhere to download ?, Thank you.

    • @RahulNath
      @RahulNath  9 місяців тому +1

      Glad you liked it Carlos. Yes the source code is available here github.com/rahulpnath/youtube-samples/tree/main/cancellation-token-example

    • @carlos.maradiaga
      @carlos.maradiaga 9 місяців тому

      Thank you so much. @@RahulNath

  • @informer9261
    @informer9261 9 місяців тому

    sir please make an c# full course , 2024

    • @RahulNath
      @RahulNath  9 місяців тому +1

      Thank you for the suggestion. I'm planning to add more videos around C# fundamentals to this channel.