最好的解决方案是什么? 使用 WF StateMachine 跟踪 Web 应用程序上的用户状态
我正在研究 WF,想知道是否最好使用 StateMachine 工作流程来跟踪用户状态。 即用户是匿名的、用户已知但未经过身份验证、用户已知且经过身份验证。
这是解决这个常见问题的好方法吗?
I was looking at WF and was wondering if it would be best to use the StateMachine workflow to follow a users state. i.e. user is anonymous, user is known but not authenticated, user is known and authenticated.
would this be a good way to go about solving this regular issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不,我认为这是完全不合适的。 请参阅以下问题了解详细信息:
No, I think that it is completely inappropriate. Please see these questions for more info:
根据我的经验,WF 对于任何此类用途来说都太重量级了 - 用它做简单的事情太困难了。 对于这个场景来说是没有用的。
不过,我当然会对相反的经历感兴趣 - 有没有人在一个简单的项目中小规模成功地使用过 WF? 工作流和状态机是任何逻辑业务域的组成部分,但我从未见过 WF 或任何其他框架的直接实现。
In my experience, WF is far too heavyweight for any such use - it is too difficult to do simple things with it. It is useless for this scenario.
I'd certainly be interested in opposite experiences, though - has anyone successfully used WF on a small scale in a simple project? Workflows and state machines are integral parts of any logical business domain but I have never seen a straightforward implementation of WF or any other framework for it.
您可能对我的SO< /a> 关于 Stateless 的答案,这是一个轻量级的 .Net 状态机。 我已经使用它代替 WF 并在 Web 环境中实现了它。
You might be interested in my SO answer regarding Stateless, a light weight .Net state machine. I have used this instead of WF and have implemented it in a web environment.