You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to pass baseUrl when registering MyService with the container? Something like: container.addTransient<IMyService>(() => new MyService("BaseUrl"));? Coming from C# this is typically how it's done so I might just be approaching this completely wrong.
I want to set baseUrl at the time of registering as it will change depending on the environment.
The text was updated successfully, but these errors were encountered:
Assuming I have the following:
Is there a way to pass
baseUrl
when registeringMyService
with the container? Something like:container.addTransient<IMyService>(() => new MyService("BaseUrl"));
? Coming from C# this is typically how it's done so I might just be approaching this completely wrong.I want to set
baseUrl
at the time of registering as it will change depending on the environment.The text was updated successfully, but these errors were encountered: