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
At the moment there is really only one project integration supported.
With one instance of ICalingaService you can only access one calinga project, because it has its configured API token and project settings.
You could for sure instantiate multiple ICalingaService-instances with different backing configurations, when creating them by hand. But this raises the question how to deal with dependency injection and .AddSingleton() as mentioned in the documentation for ASP.NET core integration.
It would be helpful, when either the documentation would be updated for supporting multiple project or the .NET SDK itself would have a way of supporting different project-configurations at runtime.
Sth like:
varprojectA=calinga.Team("Team A").Project("Project A").WithAPIToken("***").WithDrafts(true).WithCacheInterval(30);vartranslatedA=awaitprojectA.GetTranslationsAsync("my-key");// and for supporting current appsettings-configuration:varprojectB=calinga.Team("Team A").Project("Project B").WithConfiguration(nameof(CalingaServiceSettings));vartranslatedB=awaitprojectB.GetTranslationsAsync("my-key");
The text was updated successfully, but these errors were encountered:
At the moment there is really only one project integration supported.
With one instance of
ICalingaService
you can only access one calinga project, because it has its configured API token and project settings.You could for sure instantiate multiple ICalingaService-instances with different backing configurations, when creating them by hand. But this raises the question how to deal with dependency injection and
.AddSingleton()
as mentioned in the documentation for ASP.NET core integration.It would be helpful, when either the documentation would be updated for supporting multiple project or the .NET SDK itself would have a way of supporting different project-configurations at runtime.
Sth like:
The text was updated successfully, but these errors were encountered: