Blazor service is null doing property injection

Viewed 1072

I have a class that I am doing property injection.

Calling methods of this service object does nothing, no errors, exceptions, etc.

When I check to see if the service is null, it is. This seems like this should be a null exception.

I am checking the service null in a SignalR "ON" call back so it looks like there maybe a race condition, but

My solution was to change it to a constructor inject, but I am wondering why this doesn't work.

1 Answers
Related