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
I know that there is no need to separate API because Oqtane framework structure is very strong, but my work require that separation. So How to use AddHttpClient during registering services from external Assemblies?
For examlpe if I separate the api to separated project (moving controllers, repositories, and Dbcontext from the Oqtane. Server to external Api project) so that inside startup class of Oqtane.Server I used AddHttpClient to initialize the BaseAddress with API address for Oqtane. Client services (i.e. services. AddHttpClient <IInterfaceClass, ImplementClass>().ConfigureHttpClient(c=> {c. BaseAddress = new Uri(apiUrlstring)});) ). so how can use that for services from external asseblies? Or what / where modifications should be done to make this cofcient work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I know that there is no need to separate API because Oqtane framework structure is very strong, but my work require that separation. So How to use AddHttpClient during registering services from external Assemblies?
For examlpe if I separate the api to separated project (moving controllers, repositories, and Dbcontext from the Oqtane. Server to external Api project) so that inside startup class of Oqtane.Server I used AddHttpClient to initialize the BaseAddress with API address for Oqtane. Client services (i.e. services. AddHttpClient <IInterfaceClass, ImplementClass>().ConfigureHttpClient(c=> {c. BaseAddress = new Uri(apiUrlstring)});) ). so how can use that for services from external asseblies? Or what / where modifications should be done to make this cofcient work.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions