/// <summary>
 /// Creates an <see cref="IDocumentTopic{TData}"/> connected to this instance of
 /// <see cref="IDocumentStore"/>
 /// </summary>
 public static IDocumentTopic <TData> ToTopic <TData>(
     this IDocumentStore source, params string[] routeSegments) where TData : class =>
 new DocumentTopic <TData>(source, DocumentRoute.Create(routeSegments));
Example #2
0
 public static DocumentAddress Create(DocumentRoute route, DocumentKey key) =>
 new DocumentAddress(route, key);
 /// <summary>
 /// Creates an <see cref="IDocumentTopic{TData}"/> connected to this instance of
 /// <see cref="IDocumentStore"/>
 /// </summary>
 public static IDocumentTopic <TData> ToTopic <TData>(
     this IDocumentStore source, DocumentRoute route) where TData : class =>
 new DocumentTopic <TData>(source, route);
Example #4
0
 private DocumentAddress(DocumentRoute route, DocumentKey key)
 {
     Route = route;
     Key   = key;
 }