1

.net(c#)または発生したイベントの状態を維持するのに役立つライブラリに ステートフルなイベントメカニズムはありますか?

ステートフルとは、発生したイベントが永続ストレージにシリアル化されることを意味します。何らかの理由でシステムに障害が発生し、買い戻された場合、シリアル化された状態が取得され、再度開始されます。

スケジュールされたイベントも検討しています。この場合、ステートフル イベントは将来の時間に委譲することができ、その間にシステムがいつでも購入されたとしても、その時点で発生することが保証されます。

.netにこのようなものはありますか?

4

3 に答える 3

1

Although not technically a stateful event mechanism, Windows Workflow Foundation contains many features to handle these specific types of situations.

In particular, it has routines in place for serializing the work state to storage, handling failures, and recovery of long running processes with external events.

于 2010-01-15T01:01:44.913 に答える
1

There's a bit of a learning curve but Windows Workflow Foundation (WF) does exactly this. Workflows have activities which can involve raising or handling events and at various points in the workflow, the state of the whole workflow can be serialized. It supports SQL server out of the box but you can extend the persistence layer. When workflows are resumed from serialization they pick up where they left off.

It's worth noting that any serious investment in the current version of WF is discouraged because they completely rewrote it in .NET 4.0 and you should probably start with that if you don't have an investment in the current version.

于 2010-01-15T01:02:28.417 に答える
0

PostSharp で何かできるかもしれません。

于 2010-01-15T01:00:06.620 に答える