Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move responsibility to inject IJSRuntime to IApplicationInsights from IOC container to ApplicationInsightsComponent #32

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

HonzaBejvl
Copy link
Contributor

Hi,

This change allows using this super handy library from the blazor-server.

Now, when I try to register services.AddBlazorApplicationInsights(); I got Exception: circular dependency of service.

Under .NET 5, problem is circle: Service -> IJSRuntime -> Logger -> BlazorApplicationInsights lib logger -> IJSRuntime

… IOC container to ApplicationInsightsComponent
@IvanJosipovic IvanJosipovic changed the base branch from master to dev November 30, 2020 02:06
@IvanJosipovic IvanJosipovic merged commit f7a59cd into IvanJosipovic:dev Nov 30, 2020
@IvanJosipovic
Copy link
Owner

Thank you for this PR!

@IvanJosipovic
Copy link
Owner

I tested the update. I noticed that it breaks the Set Role scenario. I'll have to think about how to best fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants