Using Umbraco services
List of service references along with instructions on how to use them, as well as some examples for better understanding.
Getting a Service
using Umbraco.Cms.Core.Services;public class MyClass
{
private INotificationService _notificationService;
public MyClass(INotificationService notificationService)
{
_notificationService = notificationService;
}
}@inject INotificationService NotificationServiceExamples on using services
Last updated
Was this helpful?