当前位置: 首页>>代码示例>>C#>>正文


C# IDocumentStore.GetWriter方法代码示例

本文整理汇总了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>());
 }
开发者ID:pshomov,项目名称:frog,代码行数:7,代码来源:ClientBoundedContext.cs

示例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>());
 }
开发者ID:syned,项目名称:lokad-cqrs-appharbor,代码行数:9,代码来源:ClientBoundedContext.cs

示例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);
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:14,代码来源:EventStoreToQueueDistributor.cs

示例4: Projections

 public static IEnumerable<object> Projections(IDocumentStore docs)
 {
     yield return new UserIndexProjection(docs.GetWriter<byte, UserIndexLookup>());
 }
开发者ID:ptomasroos,项目名称:lokad-cqrs,代码行数:4,代码来源:DomainBoundedContext.cs

示例5: FormDefaultValuesProjection

 public FormDefaultValuesProjection(IDocumentStore store)
 {
     _writer = store.GetWriter<Guid, FormDefaultValues>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:FormDefaultValuesProjection.cs

示例6: FormsInProjectProjection

 public FormsInProjectProjection(IDocumentStore store)
 {
     _witer = store.GetWriter<Guid, FormsInProject>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:FormsInProject.cs

示例7: PropertyDataProjection

 public PropertyDataProjection(IDocumentStore store)
 {
     _writer = store.GetWriter<string, PropertyData>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:PropertyData.cs

示例8: FormsProjectLayoutProjection

 public FormsProjectLayoutProjection(IDocumentStore store)
 {
     _writer = store.GetWriter<Guid, FormsProjectLayout>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:FormsProjectLayout.cs

示例9: LoginIndexProjection

 public LoginIndexProjection(IDocumentStore storeFactory)
 {
     if (storeFactory == null) throw new ArgumentNullException("storeFactory");
     _writer = storeFactory.GetWriter<byte, LoginIndexLookup>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:5,代码来源:LoginIndexProjection.cs

示例10: FormInfoProjection

 public FormInfoProjection(IDocumentStore store)
 {
     _writer = store.GetWriter<Guid, FormInfo>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:FormInfo.cs

示例11: FormPropertyListProjection

 public FormPropertyListProjection(IDocumentStore store)
 {
     _writer = store.GetWriter<Guid, FormPropertyList>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:FormPropertyList.cs

示例12: RegistrationStatusProjection

 public RegistrationStatusProjection(IDocumentStore factory)
 {
     _writer = factory.GetWriter<Guid, RegistrationStatusView>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:RegistrationStatusProjection.cs

示例13: ProjectListProjection

 public ProjectListProjection(IDocumentStore store)
 {
     _writer = store.GetWriter<string, ProjectList>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:ProjectList.cs

示例14: ProjectOverviewProjection

 public ProjectOverviewProjection(IDocumentStore store)
 {
     _writer = store.GetWriter<string, ProjectOverview>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:ProjectOverview.cs

示例15: UserLoginProjection

 public UserLoginProjection(IDocumentStore storeFactory)
 {
     _passwordsWriter = storeFactory.GetWriter<byte, UserLoginIndex>();
 }
开发者ID:AlexeyRaga,项目名称:Ziggurat,代码行数:4,代码来源:UserLoginProjection.cs


注:本文中的IDocumentStore.GetWriter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。