Not able to call other Services When my class is Inheriting with IServerFilter

  1. Not able to Call other Services When my class is Inheriting with IServerFilter.

    public class HandleFailsAttribute : JobFilterAttribute, IServerFilter
    {

       private readonly INotificationInfoService notificationInfoService;
       public HandleFailsAttribute(INotificationInfoService notificationInfoService)
       {
    
         this.notificationInfoService = notificationInfoService;
    
     }
    
     public void OnPerforming(PerformingContext filterContext)
     {
     }
    
     public async void OnPerformed(PerformedContext filterContext)
     {
        this.notificationInfoService.FetchJobDetails(jobId));
     }  
    

    }

In the above Sample Code I Injected one INotificationInfoService .When I trigger any Job the Call goes to OnPerformed function .Inside this function i am fetching some JobDetails with other service.Here the Problem is before Calling FetchJobDetails(jobId).My INotificationInfoService is showing as null.

Can anyone help me what is the issue here and why the INotificationInfoService is getting as null.Is it because of my class inheriting with IServerFilter…???