本文整理汇总了C#中IDocumentStore.GetWriter方法的典型用法代码示例。如果您正苦于以下问题:C# IDocumentStore.GetWriter方法的具体用法?C# IDocumentStore.GetWriter怎么用?C# IDocumentStore.GetWriter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDocumentStore
的用法示例。
在下文中一共展示了IDocumentStore.GetWriter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Projections
public static IEnumerable<object> Projections(IDocumentStore docs)
{
// yield return new ProjectsListViewProjection(docs.GetWriter<unit, Projects>());
yield return new ProjectHistoryProjectionView(docs.GetWriter<ProjectId, ProjectHistory>());
yield return new BuildViewProjection(docs.GetWriter<BuildId, Build>());
yield return new AgentsStatusesProjection(docs.GetWriter<unit, AgentsStatus>());
}
示例2: Projections
public static IEnumerable<object> Projections(IDocumentStore docs)
{
yield return new LoginViewProjection(docs.GetWriter<UserId, LoginView>());
yield return new LoginsIndexProjection(docs.GetWriter<unit, LoginsIndexView>());
yield return new RegistrationsProjection(docs.GetWriter<RegistrationId, RegistrationView>());
// system
yield return new ReleasesProjection(docs.GetWriter<unit, ReleasesView>());
yield return new RegisteredProjection(docs.GetWriter<unit, RegisteredUsers>());
}
示例3: EventStoreToQueueDistributor
public EventStoreToQueueDistributor(
string queueName,
IQueueFactory queueFactory,
IEventStore eventStore,
IDocumentStore projectionStore,
ISerializer serializer)
{
_markerReader = projectionStore.GetReader<string, EventStoreMarker>();
_markerWriter = projectionStore.GetWriter<string, EventStoreMarker>();
_queueName = queueName;
_eventStore = eventStore;
_queueWriter = queueFactory.CreateWriter(queueName);
_serializer = new QueueMessageSerializer(serializer);
}
示例4: Projections
public static IEnumerable<object> Projections(IDocumentStore docs)
{
yield return new UserIndexProjection(docs.GetWriter<byte, UserIndexLookup>());
}
示例5: FormDefaultValuesProjection
public FormDefaultValuesProjection(IDocumentStore store)
{
_writer = store.GetWriter<Guid, FormDefaultValues>();
}
示例6: FormsInProjectProjection
public FormsInProjectProjection(IDocumentStore store)
{
_witer = store.GetWriter<Guid, FormsInProject>();
}
示例7: PropertyDataProjection
public PropertyDataProjection(IDocumentStore store)
{
_writer = store.GetWriter<string, PropertyData>();
}
示例8: FormsProjectLayoutProjection
public FormsProjectLayoutProjection(IDocumentStore store)
{
_writer = store.GetWriter<Guid, FormsProjectLayout>();
}
示例9: LoginIndexProjection
public LoginIndexProjection(IDocumentStore storeFactory)
{
if (storeFactory == null) throw new ArgumentNullException("storeFactory");
_writer = storeFactory.GetWriter<byte, LoginIndexLookup>();
}
示例10: FormInfoProjection
public FormInfoProjection(IDocumentStore store)
{
_writer = store.GetWriter<Guid, FormInfo>();
}
示例11: FormPropertyListProjection
public FormPropertyListProjection(IDocumentStore store)
{
_writer = store.GetWriter<Guid, FormPropertyList>();
}
示例12: RegistrationStatusProjection
public RegistrationStatusProjection(IDocumentStore factory)
{
_writer = factory.GetWriter<Guid, RegistrationStatusView>();
}
示例13: ProjectListProjection
public ProjectListProjection(IDocumentStore store)
{
_writer = store.GetWriter<string, ProjectList>();
}
示例14: ProjectOverviewProjection
public ProjectOverviewProjection(IDocumentStore store)
{
_writer = store.GetWriter<string, ProjectOverview>();
}
示例15: UserLoginProjection
public UserLoginProjection(IDocumentStore storeFactory)
{
_passwordsWriter = storeFactory.GetWriter<byte, UserLoginIndex>();
}