寻找框架/架构:WCF或其他什么? [英] looking for framework / architecture: WCF or something else?

查看:75
本文介绍了寻找框架/架构:WCF或其他什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨社区,

如果我走在正确的道路上或者我走向死胡同,我需要一些一般的建议。

I need some general advice if I am on the right path or if I'm heading towards a dead end.

后台:


  • 管理(启动/停止)其他本地应用程序的应用程序,我称之为
    AppStarter
  • 必须使用某些命令行参数启动的其他几个本地应用程序(我将其称为calc.exe和notepad.exe) / li>
  • Infrstructure:Windows Server 2012 R2 / DotNet 4.7.1 / Visual Studio 2017

当前状态:


  • "AppStarter"是一个在专用应用程序用户的会话中运行的经典GUI应用程序。
  • 交互需要有人通过远程桌面登录该计算机。

  • 当"AppStarter"时启动后,它将连接到Oracle数据库并读取为该主机配置的应用程序。在Windows窗体上准备了相应的按钮。
  • 当"启动记事本#1"时,单击按钮,它执行类似"notepad.exe c:\ file001.txt"的操作。使用Shell命令,记住返回码(PID)并在"停止记事本#1"时再次停止它。单击按钮。

愿望清单:


  • 远离需要RDP登录到每台计算机的GUI应用程序
  • =>制作"AppStarter"远程可控
  • 尽管如此,允许某人登录计算机,打开"AppStarterStatus"。应用程序并检查/管理Calc和记事本的运行实例的状态。

对我来说,显而易见的解决方案是Windows服务。到目前为止一切顺利,但我如何"沟通"呢?用那个"AppStarterService"?我仔细研究了"由Windows服务托管的WCF服务"。概念,它看起来几乎是
好​​。一个主要问题是我与WCF服务通信并且往往是"易变"的。 (或"无状态",缺少更好的词),这意味着它不记得启动的应用程序的PID。这使得它成为一个禁忌,
我需要* PID(以及其他配置参数)留在内存中。我读过"System.Runtime.Caching"。但不知道那是多么可靠:缓存(对于我的定义)不是永久性的。

For me the obvious solution would be a Windows service. So far so good, but how do I "communicate" with that "AppStarterService"? I've had a close look at the "WCF service hosted by a Windows service" concept and it looks almost good. A major problem is that I communicate with the WCF service and that tends to be "volatile" (or "stateless", for lack of better words), which means that it does not remember the PIDs of the launched applications. That makes it a no-go, I *need* the PID (and other config parameters) to remain in memory. I've read about "System.Runtime.Caching" but don't know how reliable that is: Cache (for my definition) is not permanent.

有没有人有一个伟大的想法指出我正确的方向?当然,我不是在寻找完成的代码,只是为了一些可能对我有帮助的想法或关键词。

Does anyone have a grand idea to point me in the right direction? Of course I'm not looking for finished code, only for some thoughts or keywords that might help me.

非常感谢

Thanks alot in advance

- bjoern

--bjoern

推荐答案

感谢您发布此处。

由于您的问题与WCF有关,我会将案例移至wcf论坛。

Since your issue is related to WCF, I will move the case to wcf forum.

最好的问候,

Hart


这篇关于寻找框架/架构:WCF或其他什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆