ILogViewAdaptorHost<TLogView,TLogEntry> 接口

定义

接口由使用日志视图一致性的所有 grain 实现,它为日志视图适配器提供对特定于粒度的信息和回调的访问权限。

public interface ILogViewAdaptorHost<TLogView,TLogEntry> : Orleans.LogConsistency.IConnectionIssueListener
type ILogViewAdaptorHost<'LogView, 'LogEntry> = interface
    interface IConnectionIssueListener
Public Interface ILogViewAdaptorHost(Of TLogView, TLogEntry)
Implements IConnectionIssueListener

类型参数

TLogView

日志视图的类型

TLogEntry

日志条目的类型

派生
实现

方法

OnConnectionIssue(ConnectionIssue)

遇到某种连接问题时调用。 调用的代码可以根据需要修改重试延迟,以更改默认值。

(继承自 IConnectionIssueListener)
OnConnectionIssueResolved(ConnectionIssue)

在解决以前报告的连接问题时调用。

(继承自 IConnectionIssueListener)
OnViewChanged(Boolean, Boolean)

通知主机有关状态更改的粒度。 ILogViewAdaptor<TLogView,TLogEntry>每当暂定状态或已确认状态更改时调用 。 在通知的批处理更改程度上,实现可能会有所不同。 引发的任何异常都将捕获并记录为警告 Log

UpdateView(TLogView, TLogEntry)

视图转换的实现。 引发的任何异常都将捕获并记录为警告 Log

适用于