Owneat Technical Guide main Help

Class ProductStockChangedEventHandler

Namespace: Restaurant.Domain.Aggregates.MenuAggregate.Events
Assembly: Restaurant.Domain.dll

public sealed class ProductStockChangedEventHandler : INotificationHandler<ProductStockChangedEvent>

Inheritance

object ← ProductStockChangedEventHandler

Implements

INotificationHandler<ProductStockChangedEvent\>

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Constructors

ProductStockChangedEventHandler\(IWebSocketService\)

public ProductStockChangedEventHandler(IWebSocketService webSocketService)

Parameters

webSocketService IWebSocketService

Methods

Handle\(ProductStockChangedEvent, CancellationToken\)

Handles a notification

public Task Handle(ProductStockChangedEvent notification, CancellationToken cancellationToken)

Parameters

notification ProductStockChangedEvent

The notification

cancellationToken CancellationToken

Cancellation token

Returns

Task

Last modified: 21 May 2024