問題タブ [namedpipeserverstream]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - .net core 3.1 の NamedPipeServerStream コンストラクターに PipeSecurity オプションを追加
.net core 3.1で、namedpipestream クライアントとサーバー間の全二重双方向通信を確立しようとしています。そのために、.netframework ライブラリを使用しようとしました。
PipeSecurity
しかし、クライアントが利用できない場合、サーバーに例外があり、.net フレームワークのようにコンストラクターにオプションがないことが原因であることがわかりました。
このコンストラクタの問題
だから私はコンストラクタを次のように変更しました
ただし、サーバーにクライアントが接続されていない場合、これは例外です。
前もって感謝します