Events
Background
In one misused line of code, our delegate has been wiped out along with it's invocation list and any link to subscribers has been lost.
As a result, Events act as an abstraction on top of delegates to manage the invocation list with fairly limited Add and Remove operations. Subscribers go through the public event to add methods which in turn acts on the underlying delegate invocation list.
What is an Event?
Events allows a class to send notifications to other classes or objects that subscribe to the event.
When an event is raised, any objects that have subscribed to the event will receive an event notification.
At Assemblysoft we specialise in Custom Software Development tailored to your requirements. We have experience creating Booking solutions, as we did for HappyCamperVan Hire. You can read more here.
We can onboard and add value to your business rapidly. We are an experienced Full-stack development team able to provide specific technical expertise or manage your project requirements end to end. We specialise in the Microsoft cloud and .NET Solutions and Services. Our developers are Microsoft Certified. We have real-world experience developing .NET applications and Azure Services for a large array of business domains. If you would like some assistance with Azure | Azure DevOps Services | Blazor Development or in need of custom software development, from an experienced development team in the United Kingdom, then please get in touch, we would love to add immediate value to your business.
Assemblysoft - Your Safe Pair of Hands
Subscribing
Use the += Operator to attach or add a subscription
Use the -= operator to detach or remove a subscription
Publishing
Comments
Post a Comment