IInstaApi in the above code that sent as parameter is instance of IInstaApi Interface (value has the same name with type :))
and i get this errore in dashboard
“”“Could not create an instance of type InstaSharper.API.IInstaApi. Type is an interface or abstract class and cannot be instantiated. Path ‘IsUserAuthenticated’, line 1, position 23.”“”
before using HangFire I used Qurtz.net and haven’t any problem
I’ve faced the similar situation. The problem is that your method (AddFollowerState) uses IInstaApi interface as the type of argument. The problem here is that specific type is only known in run-time. Consider rewriting this method adding templated parameter so that type is known in the compile-time:
void F(ISomething x)
vs void F<T>(T x) where T : ISomething
I have a harder case…
The argument I have to serialize is List where each element of the list could be a different concrete implementation of IThingy. Even worse is that the job is defined in a project that can’t reference the concrete implementations of IThingy.