Exemplo n.º 1
0
        /// <summary>
        /// Add an <see cref="InvokeService">action</see> to describe the invoking of services
        /// </summary>
        /// <param name="descriptorBuilder"><see cref="ISecurityDescriptorBuilder"/> to extend</param>
        /// <returns><see cref="InvokeService"/> for describing the action</returns>
        public static InvokeService Invoking(this ISecurityDescriptorBuilder descriptorBuilder)
        {
            var action = new InvokeService();

            descriptorBuilder.Descriptor.AddAction(action);
            return(action);
        }
Exemplo n.º 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);
        }
        /// <summary>
        /// Add an <see cref="HandleCommand">action</see> to describe the handling of <see cref="CommandRequest">commands</see>.
        /// </summary>
        /// <param name="descriptorBuilder"><see cref="ISecurityDescriptorBuilder"/> to extend.</param>
        /// <returns><see cref="HandleCommand"/> for describing the action.</returns>
        public static HandleCommand Handling(this ISecurityDescriptorBuilder descriptorBuilder)
        {
            var action = new HandleCommand();

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