/// <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));
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);
private DocumentAddress(DocumentRoute route, DocumentKey key) { Route = route; Key = key; }