/// <summary> /// Add a <see cref="FetchingSecurityTarget"/> to the <see cref="Fetching">action</see>. /// </summary> /// <param name="action"><see cref="Fetching">Action</see> to add to.</param> /// <returns><see cref="FetchingSecurityTarget"/>.</returns> public static FetchingSecurityTarget ReadModels(this Fetching action) { var target = new FetchingSecurityTarget(); action.AddTarget(target); return(target); }
/// <summary> /// Add an <see cref="Fetching">action</see> to describe the fetching of <see cref="IReadModel">read models</see>. /// </summary> /// <param name="descriptorBuilder"><see cref="ISecurityDescriptorBuilder"/> to extend.</param> /// <returns><see cref="Fetching"/> builder.</returns> public static Fetching Fetching(this ISecurityDescriptorBuilder descriptorBuilder) { var action = new Fetching(); descriptorBuilder.Descriptor.AddAction(action); return(action); }