I need to open a winforms FolderBrowserDialog from class library. We are calling the method via web socket from js and i need to open a FolderBrowserDialog in that method in order to get path and do some operations inside the folder. I tried both opening a new winform which contains a FolderBrowserDialog and FolderBrowserDialog without form but the form is freezing and doesnt response afer show or showdialog method. Is there a proper way to do it?
Information about the arcitechture: We have a .net web socket listener app and it is already running on the client machine. Frontend requets comes in to that app an it runs c# on the clients machine using reflection class and dlls on the client machine.