private void OnDocumentClose(GH_DocumentServer sender, GH_Document doc) { if (_localReceiverPipe != null) { _localReceiverPipe.ClosePipe(); _localReceiverPipe = null; } }
private void CloseLocalPipe() { if (_localSenderPipe != null) { _localSenderPipe.ClosePipe(); _localSenderPipe = null; } }