- 175
- 2 284 550
Rahul Nath
Australia
Registrace 8. 03. 2009
Hey 👋, My name is Rahul, and welcome to my CZcams channel.
I am a programmer, blogger, AWS Community Builder, and CZcamsr! I love teaching and try to explain 'Why we do What we do' by going deeper into what I teach.
Currently, I am working as a Senior Engineer with Oztix in Australia.
I make videos on Azure, DevOps, .Net, and React. On the side, I also write blog posts, contribute to Open Source, and do some freelance consulting. I enjoy running and cycling.
You can reach me via any of the social media, drop a comment in the videos, or send me an email at hello@rahulpnath.com
Thank you for watching, Enjoy!
I am a programmer, blogger, AWS Community Builder, and CZcamsr! I love teaching and try to explain 'Why we do What we do' by going deeper into what I teach.
Currently, I am working as a Senior Engineer with Oztix in Australia.
I make videos on Azure, DevOps, .Net, and React. On the side, I also write blog posts, contribute to Open Source, and do some freelance consulting. I enjoy running and cycling.
You can reach me via any of the social media, drop a comment in the videos, or send me an email at hello@rahulpnath.com
Thank you for watching, Enjoy!
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
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
Is there a way to unlock it silently?
how to install x-ray deamon locally in windows
Hope this helps Nikhil docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html
One of finest content video about key managing mechanism... awesome
Thank you for the video Rahul, Could you please also consider making video related to NServiceBus Sagas ?
Can you please make a video on federated credentials azure.
awesome explanation
Does it work for resources level contributors access instead of subscription level
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"
i love this kind of videos, thanks Rahul
Thanks for the informative and good explanation video
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?
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?
Always awesome!
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.
missing region end point
Sorry - can you provide more details?
One of the best video about feature management and subscribed
Glad you liked it! Do check out the full series bit.ly/asp-net-core-series
How was your build pipeline successful when your code was c# and your VM was unbuntu?
dotnetcore
Excellent tutorial, and very easy to follow. Looking at time on your computer though - you did this at 4am!?
Glad you found it useful! Yes I record my videos early in the morning, house is the quietest during that time 😀
Thank you so much sir
Glad you like it Amarnath! And you can call me Rahul 😀
do you record videoes after taking drugs?
Haha you are the only one that found out! Hope you liked my drugged style.
helpful videos. but it appears to be in fast mode.
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)
@@RahulNath you speak fast, atlest for me. Take small breaks between sentences or points. My video speed is 1x Your videos are helpful though
@@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
Super Explanation
Glad you liked it Raghav! Hope you are enjoying the series bit.ly/asp-net-core-series
It's a very cool explanation...so easy to understand thank you sir
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.
is there a way of injecting logger dependency in startup??
2024 and this is still an issue.
That's sad that they haven't fixed it!
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 ?
So Nice & easy to understand sir, thank you
You are most welcome! Do check out the AWS Series bit.ly/aws-net-series
How can we optimize the id Hash key for idempotecy table?
Like, removing the identical lambda.functioname.#####. In the Id pk for idempotency table
Does this help? docs.powertools.aws.dev/lambda/dotnet/utilities/idempotency/#customizing-dynamodb-configuration
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.
I think sending 1 or more messages in the batch request should be fine.
@@RahulNath Thanks Rahul
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 ?
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
Amazing explanation thanks a lot Rahul. New subscriber here!
Glad you are liking the content.
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
This is amazing! How can call to appsettings.json file from a AWS LAMBDA?
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.
Very informative and clearly explained. The examples are very helpful to see the different aspects and uses of the language and intent. Great work!
Very happy to hear that!
Thanks for this informative video, it helped me a lot.
Very happy to hear that Tarun. Do check out the Azure and ASP Series bit.ly/azure-series bit.ly/asp-net-core-series
@@RahulNath Thanks, definitely I do.
yes sir, very easily understandable...thank you somuch
Thank you Amarnath! Do check out the DynamoDB Series bit.ly/awsdynamodb
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 '
Keep up the great content Rahul and thank you for the clear explainations!
Glad you like them Peter!
Very useful tutorial sir
Glad you like it Amarnath! Do check out the AWS Series bit.ly/aws-net-series
Very nice tutorial thank you somuch sir
So nice of you Amarnath! Do checkout the full AWS Series here bit.ly/aws-net-series
Do we have ways to apply these filter expressions using the object persistence model? It would be really helpful.
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!!
Do you recommend Singleton or Transient with repository class that work with data?
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/
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?
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.
how to handle 403 in .net core web api
@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?
How do i store the token that i get in my redirect Uri. Can i do that 💀. Im new to programing btw trainee
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!!
Having the same problem. Only node.js runtimes.