Rahul Nath
Rahul Nath
  • 175
  • 2 284 550
Should you use Primary Constructors in C# ? | Exploring C# and DOTNET | Rahul Nath
Parameter Constructor is a concise syntax for declaring constructors whose parameters are available anywhere in the type's body. Beginning with C# 12, you can place any parameters after the class or struct type name.
Parameters to the Primary Constructors are in scope in the entire body of the declaring type.
Let’s explore what Primary Constructors offer us, how to use them, and some things to remember when using them.
00:00 Intro
00:23 Primary Constructors
00:47 Demo
02:15 Compiler Generated Code
02:55 Local Functions
04:40 Dependency Injection
06:36 Other Constructors
09:17 Parameters are Mutable
10:53 Compiler Generated
12:29 When to Use Primary Constructors?
🔗Primary Constructors - learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/primary-constructors
Additional Watching
📹 CSharp Series - bit.ly/mycsharp
📹 ASP Series - bit.ly/asp-net-core-series
📹Azure Series - bit.ly/azure-series
📹AWS Series - bit.ly/aws-net-series
📹RabbitMQ Series - bit.ly/rabbitmq-net-series
Come say hi! ✋
🎙️Uses - www.rahulpnath.com/uses
🌍Blog - www.rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
🐦Twitter - rahulpnath
📸Instagram - rahulpnath
#dotnet #csharp
zhlédnutí: 1 263

Video

HEADERS EXCHANGE in RabbitMQ | RabbitMQ from DOTNET | Amazon MQ
zhlédnutí 264Před 2 měsíci
Headers Exchange in RabbitMQ routes messages using message headers to route messages. A message is considered a match if the header's value matches that on the binding. I use Amazon MQ, a managed message broker service that supports ActiveMQ and RabbitMQ engine types, to host my RabbitMQ instance. However, you can use one of the various options that RabbitMQ provides. In this video, let’s explo...
Are You Using Cancellation Token The Right Way? 5 Recommended Patterns | Exploring C# and DOTNET
zhlédnutí 1,4KPřed 2 měsíci
CancellationTokens in .NET allows the caller to express lost interest in the result of an operation. This can be at a Function level, class level, API endpoint, etc. But does that mean all requests are the same and can be canceled similarly? Short answer - No! So, let’s learn some recommended practices when using Cancellation Tokens in your application code. Here are five recommended patterns t...
TOPIC EXCHANGE TYPE | RabbitMQ from DOTNET | Amazon MQ
zhlédnutí 377Před 2 měsíci
Topic Exchanges in RabbitMQ route messages based on wildcard matches on the message routing key, which is specified on the queue binding. With Topic Exchanges consumers have the flexibility to indicate the topics they are interested in, like subscribing to a feed or individual tags. Messages matching the criteria are sent to the appropriate queue. Topic exchanges have diverse use cases, particu...
Cancellation Token in .NET | Exploring C# and DOTNET
zhlédnutí 3,9KPřed 2 měsíci
Hey 👋 Imagine having a long-running request triggered by a user on your server. But, the user is no longer interested in the result and has navigated away from the page. However, the server is still processing that request and utilizing resources until you come along and implement Cancellation Tokens in the application code. .NET uses Cancellation Token for cooperative cancellation of asynchron...
FANOUT EXCHANGE TYPE | RabbitMQ from DOTNET | Amazon MQ
zhlédnutí 337Před 2 měsíci
A Fanout Exchange type in RabbitMQ routes messages to all the queues bound to it, ignoring the routing key. When a new message is published to a Fanout exchange, a copy is delivered to all the queues bound to it. Fanout exchanges are ideal for broadcast routing of messages. In this video, we will learn • What is an Exchange • Binding and Routing Keys • Setting Up Fanout Exchange from • FanoutEx...
RECORD TYPES | Exploring C# and DOTNET | Rahul Nath
zhlédnutí 2,3KPřed 3 měsíci
Hey👋 Record types in C# provide a concise and expressive way to define immutable data structures. They automatically generate boilerplate code for value equality, deconstruction, and common methods like `Equals,` `GetHashCode,` and `ToString` In this video lets, • Dive into Record Types • Features of Record Types • Pitfalls with Record Types We will progressively build up Record Types from a si...
DIRECT EXCHANGE TYPE | RabbitMQ from DOTNET | Amazon MQ
zhlédnutí 371Před 3 měsíci
An Exchange in RabbitMQ is a routing mechanism that sends messages to different queues. The type of exchange determines how an Exchange sends the messages to Queues. RabbitMQ supports different Exchange types, and in this video, we will learn about the Direct Exchange Type, how to set it up, how it works, and when to use it. We will learn • What is an Exchange • Binding and Routing Keys • Setti...
MESSAGE DISPATCHING MODES RabbitMQ from DOTNET | Amazon MQ
zhlédnutí 440Před 3 měsíci
Hi👋, Work queue, also known as a task queue, is a mechanism used in message-based systems to distribute and parallelize tasks or jobs across multiple workers. When using RabbitMQ, Dispatching modes play a crucial role in task distribution among multiple workers. In this video, let’s learn the two message dispatch modes in RabbitMQ and how they affect the consumers pulling work from the Queues. ...
AZURE BLOB STORAGE - Getting Started | Azure Series
zhlédnutí 3,3KPřed 3 měsíci
Hey👋 Excited to be back making videos on Azure! Azure Blob Storage is Microsoft's object storage solution for the cloud. Blob Storage is optimized for storing massive amounts of unstructured data such as text or binary data. Blob Storage works great for storing files, serving images or documents directly to a browser, streaming content, data backups etc. In this video let’s learn about the basi...
CONSUMER ACKNOWLEDGEMENTS RabbitMQ from DOTNET | Amazon MQ
zhlédnutí 580Před 4 měsíci
Messages picked up for processing by the consumers are not guaranteed to be successfully processed. Hence, consumers need a mechanism for processing confirmation. Delivery processing acknowledgments from consumers are referred to as acknowledgments in messaging protocols. In this video, let’s dive into learning about different acknowledgment modes and how to use them when working with RabbitMQ ...
RabbitMQ Getting Started from DOTNET | Amazon MQ
zhlédnutí 2,3KPřed 4 měsíci
RabbitMQ is a powerful open-source message broker facilitating communication between systems or applications. It ensures seamless data exchange by enabling asynchronous messaging, making it an essential tool for building scalable and resilient distributed systems. In this new video series, let’s explore some of the core concepts, features, and practical implementations of RabbitMQ, specifically...
AWS Lambda BATCH Processing From SQS | Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
zhlédnutí 968Před 5 měsíci
Happy New Year 👋 The AWS Lambda PowerTools Batch processing utility makes it easy to process a batch of messages from Amazon SQS, Amazon Kinesis Data Streams, and Amazon DynamoDB Streams. It provides a simple interface to process each batch record, enables parallel processing, reports batch item failures to reduce the number of retries, and also supports customizations to meet your business nee...
PARAMETERS - Managing Configuration - Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
zhlédnutí 408Před 5 měsíci
When building Lambda Functions, we often need to store configuration and sensitive information. AWS Provides different services like Parameter Store, Secrets Manager, etc, to store sensitive information. The AWS Lambda Powertools library makes it easy to work with these different services and retrieve parameter values. In this video, let’s learn how to get started using the Lambda Powertools Pa...
DynamoDB Time to Live (TTL) | .NET ON AWS | AWS Serverless | Amazon
zhlédnutí 298Před 5 měsíci
Hello 👋 Amazon DynamoDB Time to Live (TTL) is a feature that allows you to automatically manage the expiration of items in a DynamoDB table. It simplifies removing outdated or stale data by enabling you to specify a timestamp attribute in your items, indicating when the items should expire. DynamoDB TTL feature removes the need for manual cleanup of expired table items, and it helps improve cos...
IDEMPOTENCY - Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
zhlédnutí 918Před 5 měsíci
IDEMPOTENCY - Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
METRICS - Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
zhlédnutí 469Před 6 měsíci
METRICS - Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
LOGGING - Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
zhlédnutí 912Před 6 měsíci
LOGGING - Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
Lambda Annotations & AWS Services | .NET ON AWS | Serverless | Amazon
zhlédnutí 387Před 6 měsíci
Lambda Annotations & AWS Services | .NET ON AWS | Serverless | Amazon
DEPLOY LAMBDA Function From JetBrains Rider IDE | .NET ON AWS | Serverless | Amazon
zhlédnutí 760Před 7 měsíci
DEPLOY LAMBDA Function From JetBrains Rider IDE | .NET ON AWS | Serverless | Amazon
AWS TOOLKIT on JetBrains Rider IDE | .NET ON AWS | Serverless | Amazon
zhlédnutí 829Před 7 měsíci
AWS TOOLKIT on JetBrains Rider IDE | .NET ON AWS | Serverless | Amazon
SCHEDULING TASKS ON AWS LAMBDA | .NET ON AWS | Serverless | Amazon
zhlédnutí 1,2KPřed 7 měsíci
SCHEDULING TASKS ON AWS LAMBDA | .NET ON AWS | Serverless | Amazon
APPLE WALLET PASS | .NET ON AWS | Serverless
zhlédnutí 2,1KPřed 7 měsíci
APPLE WALLET PASS | .NET ON AWS | Serverless
TRACING - Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
zhlédnutí 654Před 7 měsíci
TRACING - Powertools for AWS Lambda | .NET ON AWS | Serverless | Amazon
DEPENDENCY INJECTION Lambda | Lambda Annotations Framework | .NET ON AWS | Serverless | Amazon
zhlédnutí 1,9KPřed 8 měsíci
DEPENDENCY INJECTION Lambda | Lambda Annotations Framework | .NET ON AWS | Serverless | Amazon
SERVERLESS CRUD API | Lambda Annotations Framework | .NET ON AWS | Serverless | Amazon
zhlédnutí 1,4KPřed 9 měsíci
SERVERLESS CRUD API | Lambda Annotations Framework | .NET ON AWS | Serverless | Amazon
Lambda Annotations Framework Introduction | .NET ON AWS | Serverless | Amazon
zhlédnutí 1,2KPřed 9 měsíci
Lambda Annotations Framework Introduction | .NET ON AWS | Serverless | Amazon
DynamoDB BATCH DELETE | .NET ON AWS | Serverless | Amazon
zhlédnutí 498Před 9 měsíci
DynamoDB BATCH DELETE | .NET ON AWS | Serverless | Amazon
DynamoDB BATCH WRITE | .NET ON AWS | Serverless | Amazon
zhlédnutí 495Před 9 měsíci
DynamoDB BATCH WRITE | .NET ON AWS | Serverless | Amazon
DynamoDB BATCH GET | .NET ON AWS | Serverless | Amazon
zhlédnutí 423Před 9 měsíci
DynamoDB BATCH GET | .NET ON AWS | Serverless | Amazon

Komentáře

  • @franklintrover5807
    @franklintrover5807 Před 8 hodinami

    Is there a way to unlock it silently?

  • @nikhilsavaliya1748
    @nikhilsavaliya1748 Před 22 hodinami

    how to install x-ray deamon locally in windows

    • @RahulNath
      @RahulNath Před 12 hodinami

      Hope this helps Nikhil docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html

  • @deepjyotyroy6676
    @deepjyotyroy6676 Před 2 dny

    One of finest content video about key managing mechanism... awesome

  • @venkateshb1975
    @venkateshb1975 Před 3 dny

    Thank you for the video Rahul, Could you please also consider making video related to NServiceBus Sagas ?

  • @amanraut5304
    @amanraut5304 Před 5 dny

    Can you please make a video on federated credentials azure.

  • @niteshratnaparkhe1799

    awesome explanation

  • @ShivamTiwari-ht8cz
    @ShivamTiwari-ht8cz Před 7 dny

    Does it work for resources level contributors access instead of subscription level

  • @ramiroalegre8183
    @ramiroalegre8183 Před 7 dny

    any can help me? i'm using localstack for local aws, how i can send logs to localstack? i ever have the same error, "Error initializing log stream. No logs will be sent to aws cloudwatch. Exceptión was system.timeoutexception: a task was canceled"

  • @cristianvelasquez1949

    i love this kind of videos, thanks Rahul

  • @shubhamkoolwal139
    @shubhamkoolwal139 Před 8 dny

    Thanks for the informative and good explanation video

  • @vivekgowda1576
    @vivekgowda1576 Před 8 dny

    I wanted to search the text with a large number of files within s3 ? is this possible or is there any other service we need to use?

  • @aakashpoojary6030
    @aakashpoojary6030 Před 9 dny

    Hey @rahul had a query on the usage of Service Bus and Azure function together for microservices. Let's say, if I perform a post call from one service and send the message to service bus, Azure functions picks that message and does the transformation if any and redirects to another service can be post/patch/get. What is your thought on it? Is my understanding correct? Or Is it case of over engineering? If not, any better ideas?

  • @user-hx4mh5qs2v
    @user-hx4mh5qs2v Před 10 dny

    Always awesome!

  • @shortanimatedmovie672

    Anyone can help me with this error after this command {Enter Runtime: (The runtime environment for the Lambda function) dotnet8} : error : The NuGetSdkResolver did not resolve this SDK because there was no version specified in the project or global.json.

  • @viveknetha7743
    @viveknetha7743 Před 13 dny

    missing region end point

    • @RahulNath
      @RahulNath Před 12 dny

      Sorry - can you provide more details?

  • @vijaisebastian
    @vijaisebastian Před 13 dny

    One of the best video about feature management and subscribed

    • @RahulNath
      @RahulNath Před 12 dny

      Glad you liked it! Do check out the full series bit.ly/asp-net-core-series

  • @fudhater8592
    @fudhater8592 Před 16 dny

    How was your build pipeline successful when your code was c# and your VM was unbuntu?

  • @zo1dberg
    @zo1dberg Před 16 dny

    Excellent tutorial, and very easy to follow. Looking at time on your computer though - you did this at 4am!?

    • @RahulNath
      @RahulNath Před 16 dny

      Glad you found it useful! Yes I record my videos early in the morning, house is the quietest during that time 😀

  • @amarnatha1614
    @amarnatha1614 Před 17 dny

    Thank you so much sir

    • @RahulNath
      @RahulNath Před 16 dny

      Glad you like it Amarnath! And you can call me Rahul 😀

  • @kingsanu5250
    @kingsanu5250 Před 17 dny

    do you record videoes after taking drugs?

    • @RahulNath
      @RahulNath Před 17 dny

      Haha you are the only one that found out! Hope you liked my drugged style.

  • @RajdeepAnandGPlus
    @RajdeepAnandGPlus Před 18 dny

    helpful videos. but it appears to be in fast mode.

    • @RahulNath
      @RahulNath Před 18 dny

      Thank you - can you clarify fast mode ? Am I talking too fast or concepts are not in detail ? (Making sure the playback speed is 1 on your player)

    • @RajdeepAnandGPlus
      @RajdeepAnandGPlus Před 18 dny

      @@RahulNath you speak fast, atlest for me. Take small breaks between sentences or points. My video speed is 1x Your videos are helpful though

    • @RahulNath
      @RahulNath Před 18 dny

      @@RajdeepAnandGPlus Thank you for your feedback. Do let me know if you do have questions . I also have associated blog post for most videos if that helps you follow along www.rahulpnath.com

  • @raghavambashta4564
    @raghavambashta4564 Před 19 dny

    Super Explanation

    • @RahulNath
      @RahulNath Před 16 dny

      Glad you liked it Raghav! Hope you are enjoying the series bit.ly/asp-net-core-series

  • @amarnatha1614
    @amarnatha1614 Před 19 dny

    It's a very cool explanation...so easy to understand thank you sir

    • @RahulNath
      @RahulNath Před 16 dny

      You are most welcome! Here is the full AWS Series bit.ly/aws-net-series Do let me know if you have any topic suggestions.

  • @LucasLucena-vj4lc
    @LucasLucena-vj4lc Před 22 dny

    is there a way of injecting logger dependency in startup??

  • @TrinankurDasgupta
    @TrinankurDasgupta Před 23 dny

    2024 and this is still an issue.

    • @RahulNath
      @RahulNath Před 12 dny

      That's sad that they haven't fixed it!

  • @user-wb3kd9eg8i
    @user-wb3kd9eg8i Před 23 dny

    hi, its a very helpful video but i need to add a Nuget reference <PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.17" /> into my function. i created Http triggered function through azure portal. how to add this package ?

  • @amarnatha1614
    @amarnatha1614 Před 24 dny

    So Nice & easy to understand sir, thank you

    • @RahulNath
      @RahulNath Před 12 dny

      You are most welcome! Do check out the AWS Series bit.ly/aws-net-series

  • @reviewnation2145
    @reviewnation2145 Před 26 dny

    How can we optimize the id Hash key for idempotecy table?

    • @reviewnation2145
      @reviewnation2145 Před 26 dny

      Like, removing the identical lambda.functioname.#####. In the Id pk for idempotency table

    • @RahulNath
      @RahulNath Před 26 dny

      Does this help? docs.powertools.aws.dev/lambda/dotnet/utilities/idempotency/#customizing-dynamodb-configuration

  • @sandanuwan4441
    @sandanuwan4441 Před 27 dny

    Thanks for the Video Rahul. I have to ask a question regarding sending a multiple messages to SQS. suppose If I don't know how many request I have to send , In that case If I use send multiple message to SQS, I will send only one massage or more than one massages right ? is this correct ? or with send multiple message into SQS, do we need to always send more than one message at a time.

    • @RahulNath
      @RahulNath Před 27 dny

      I think sending 1 or more messages in the batch request should be fine.

    • @sandanuwan4441
      @sandanuwan4441 Před 26 dny

      @@RahulNath Thanks Rahul

  • @agnisha7
    @agnisha7 Před 27 dny

    Is daemon.exe used only for local debugging? Is there a way where a simple .net 8 web api application is able to log traces without running daemon ?

  • @amankumarpandit2681
    @amankumarpandit2681 Před 28 dny

    Hi Rahul Really it was a very good session. could you please also make a video on IOptionsMonitor. There's one scenario where i've added redis as a new configuration source but when there's any change in redis value without restart it's not reflecting the changes. if would be able to give me some idea that would be really helpful. i've googled it a lot but not find much information. Thanks

  • @elCOMPAiler
    @elCOMPAiler Před 28 dny

    Amazing explanation thanks a lot Rahul. New subscriber here!

    • @RahulNath
      @RahulNath Před 27 dny

      Glad you are liking the content.

  • @learnwithengineer66
    @learnwithengineer66 Před 28 dny

    if i don't want to give contributor role to Azure app registry and i want to use user assign manage identity in app registry Federated credentials can you please share that approach

  • @emanuelcordovamontiel1017

    This is amazing! How can call to appsettings.json file from a AWS LAMBDA?

    • @RahulNath
      @RahulNath Před 28 dny

      What are you looking to use appsettings.json for ? Have you looked at using Environment variables or ParameterStore/SecretManager etc ? If you can provide some more details on what you are planning to use it for I can suggest.

  • @EntangledFrequency
    @EntangledFrequency Před 29 dny

    Very informative and clearly explained. The examples are very helpful to see the different aspects and uses of the language and intent. Great work!

  • @TarunSharma1104
    @TarunSharma1104 Před měsícem

    Thanks for this informative video, it helped me a lot.

    • @RahulNath
      @RahulNath Před měsícem

      Very happy to hear that Tarun. Do check out the Azure and ASP Series bit.ly/azure-series bit.ly/asp-net-core-series

    • @TarunSharma1104
      @TarunSharma1104 Před měsícem

      @@RahulNath Thanks, definitely I do.

  • @amarnatha1614
    @amarnatha1614 Před měsícem

    yes sir, very easily understandable...thank you somuch

    • @RahulNath
      @RahulNath Před měsícem

      Thank you Amarnath! Do check out the DynamoDB Series bit.ly/awsdynamodb

  • @n.sharma5810
    @n.sharma5810 Před měsícem

    Hi Rahul, do you have any video on solid principal, or it's possible to create one.? Mainly looking for ' how to identify responsibilty of a component '

  • @petervandendungen4210
    @petervandendungen4210 Před měsícem

    Keep up the great content Rahul and thank you for the clear explainations!

  • @amarnatha1614
    @amarnatha1614 Před měsícem

    Very useful tutorial sir

    • @RahulNath
      @RahulNath Před měsícem

      Glad you like it Amarnath! Do check out the AWS Series bit.ly/aws-net-series

  • @amarnatha1614
    @amarnatha1614 Před měsícem

    Very nice tutorial thank you somuch sir

    • @RahulNath
      @RahulNath Před 12 dny

      So nice of you Amarnath! Do checkout the full AWS Series here bit.ly/aws-net-series

  • @saumyaprajapati9363
    @saumyaprajapati9363 Před měsícem

    Do we have ways to apply these filter expressions using the object persistence model? It would be really helpful.

  • @pramodaaskar293
    @pramodaaskar293 Před měsícem

    Crisp and clear as always!! I prefer searching first your video on any topic around DotNet or cloud !! Please always keep adding such knowledge based videos!! Could you please add some videos on the topic like Best practices, Some solution based-design discussion can be as short as Uploading files, or as complex as like Banking, social media, Travel application, Mobile Apps etc ...just an high level design discussions .. Anyways Keep up the Great Work!!

  • @emanuelcordovamontiel1017

    Do you recommend Singleton or Transient with repository class that work with data?

  • @RahulNath
    @RahulNath Před měsícem

    If you want to learn on how to set up Push Notifications to keep the Wallet Pass up to date check out this blog post here www.rahulpnath.com/blog/apple-wallet-push-notifications/

  • @JorgeAyala-ch3wn
    @JorgeAyala-ch3wn Před měsícem

    thank you for the walk through Rahul, i am interesting into signing the pass in my server to send updates, does anyone knows any tutorial?

    • @RahulNath
      @RahulNath Před měsícem

      Thank you Jorge. I wrote about the Push Notifications bit here www.rahulpnath.com/blog/apple-wallet-push-notifications/ Haven't yet got to making a video for it. Happy to help if you have additional questions.

  • @sagerofgyan
    @sagerofgyan Před měsícem

    how to handle 403 in .net core web api

  • @nizarkhatri6237
    @nizarkhatri6237 Před měsícem

    @rahulNath great content. I have a question. is there a way to update the webjobs webhook url? I need to pass arguments after /run like ".../run?arguments=1 If we cannot update the url then how can we pass the arguments?

  • @denji3397
    @denji3397 Před měsícem

    How do i store the token that i get in my redirect Uri. Can i do that 💀. Im new to programing btw trainee

  • @cesomark
    @cesomark Před měsícem

    Hi! Thanks for the Video! I have a problem, maybe you can help me! When i open the "Create Function" UI, and i open the "Runtime" dropdown, i only see node.js runtimes! Do you maybe know how to fix that? Also, when i go to the AWS Toolkit menu, navigate to "Explorer", and then right click on "Lambda" to open the dialogue for "Create a new AWS Lambda..." my IDE gives me some sort of error that starts like this: com.intellij.diagnostic.PluginException: Cannot create extension (class=software.aws.toolkits.jetbrains.services.lambda.python.PythonRuntimeGroup) [Plugin: aws.toolkit] I hope you can help me. Thanks!!

    • @HurryupandCarry
      @HurryupandCarry Před měsícem

      Having the same problem. Only node.js runtimes.