示例#1
0
        /// <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);
        }
示例#2
0
        /// <summary>
        /// Add an <see cref="Fetching">action</see> to describe the fetching of <see cref="IReadModel">read models</see>
        /// </summary>
        /// <param name="descriptorBuilder"></param>
        /// <returns></returns>
        public static Fetching Fetching(this ISecurityDescriptorBuilder descriptorBuilder)
        {
            var action = new Fetching();

            descriptorBuilder.Descriptor.AddAction(action);
            return(action);
        }