Dotnet-IO-logger / core

Dotnet Input output logger
https://marketplace.visualstudio.com/items?itemName=Diol.diol
MIT License
28 stars 1 forks source link

Setup the SignalR client as a windows service #12

Closed OlzhabaevSh closed 1 year ago

OlzhabaevSh commented 1 year ago

Current flow doesn't work for VSIX.

We have a bug when we run our app as VSIX.

We did a lot of investigations:

  1. It works for dotnet dotnet/framework
  2. It works for x64/x86
  3. It works for debug/release

We should always confugure to be able to run unsafe code.

We still don't know why it happens only for VSIX.

Workaround:

  1. create a windows service and and use it as a backend.
  2. from VSIX just call this backend.
  3. rewrite wpf core.
OlzhabaevSh commented 1 year ago

useful links: https://csharp.christiannagel.com/2022/03/22/windowsservice-2/

OlzhabaevSh commented 1 year ago

example how to install a service sc.exe create MyAspnetcoreAsService binpath= C:\temp\publish\AspnetcoreAsService.exe

sc.exe delete MyAspnetcoreAsService

OlzhabaevSh commented 1 year ago

https://github.com/Dotnet-IO-logger/core/tree/main/source/Diol/src/applications/Diol.applications.SignalrClient