ActiveRecordIntegration 支持 IStatelessSession

发布于 2024-09-25 12:37:11 字数 562 浏览 1 评论 0原文

AR Integration似乎不支持打开StatelessSession,从查看: http://github.com /castleproject/Castle.Facilities.ActiveRecordIntegration/blob/master/src/Castle.Facilities.ActiveRecordIntegration/SessionFactoryDe​​legate.cs

查看第 62 行,如果不调用 OpenSession 它将抛出异常。 我想调用 OpenStatelessSession 来初始化 IStatelessSession。

我看到有些人在谈论 StatelessSessionScope,但我没有找到将其与 AR 集成结合使用的好例子......

it seems that AR Integration doesn't support to open StatelessSession, from looking at:
http://github.com/castleproject/Castle.Facilities.ActiveRecordIntegration/blob/master/src/Castle.Facilities.ActiveRecordIntegration/SessionFactoryDelegate.cs

looking at line 62, if you don't call OpenSession it will throw exception.
I would like to call OpenStatelessSession to initialize IStatelessSession.

I saw that some people are talking about StatelessSessionScope but I didn't manage to find good examples for using it with AR Integration...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如梦亦如幻 2024-10-02 12:37:11

据我所知,目前尚未实施/支持。请在问题跟踪器中提出问题,如果可能的话,也分叉并实现它:-)

To the best of my knowledge, it's not currently implemented/supported. Please file an issue in the issue tracker and if possible also fork and implement it :-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文