Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventHubsModelFactory 类

定义

用于创建事件中心模型类型的工厂,以帮助进行模拟和测试。

public static class EventHubsModelFactory
type EventHubsModelFactory = class
Public Class EventHubsModelFactory
继承
EventHubsModelFactory

方法

EventData(BinaryData, IDictionary<String,Object>, IReadOnlyDictionary<String,Object>, String, Int64, Int64, DateTimeOffset)

初始化 EventData(BinaryData, IDictionary<String,Object>, IReadOnlyDictionary<String,Object>, String, Int64, Int64, DateTimeOffset) 类的新实例。

EventDataBatch(Int64, IList<EventData>, CreateBatchOptions, Func<EventData,Boolean>)

初始化 EventDataBatch(Int64, IList<EventData>, CreateBatchOptions, Func<EventData,Boolean>) 类的新实例。

EventHubProperties(String, DateTimeOffset, String[])

初始化 EventHubProperties(String, DateTimeOffset, String[]) 类的新实例。

LastEnqueuedEventProperties(Nullable<Int64>, Nullable<Int64>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

初始化 LastEnqueuedEventProperties(Nullable<Int64>, Nullable<Int64>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) 类的新实例。

PartitionContext(String, String, String, String, LastEnqueuedEventProperties)

初始化 PartitionContext 类的新实例。

PartitionProperties(String, String, Boolean, Int64, Int64, Int64, DateTimeOffset)

初始化 PartitionProperties(String, String, Boolean, Int64, Int64, Int64, DateTimeOffset) 类的新实例。

适用于