public static QueriesParameter From(CodeGenerationParameter autoDispatchParameter)
 {
     if (!autoDispatchParameter.HasAny(Label.QueriesProtocol))
     {
         return(QueriesParameter.Empty());
     }
     return(new QueriesParameter(autoDispatchParameter.RetrieveRelatedValue(Label.QueriesProtocol), autoDispatchParameter.RetrieveRelatedValue(Label.QueriesActor)));
 }
        public static QueriesParameter From(CodeGenerationParameter aggregateParameter, List <ContentBase> contents, bool useCQRS)
        {
            if (!useCQRS)
            {
                return(QueriesParameter.Empty());
            }

            var queriesProtocol = new TemplateStandard(TemplateStandardType.Queries).ResolveClassname(aggregateParameter.value);
            var queriesActor    = new TemplateStandard(TemplateStandardType.QueriesActor).ResolveClassname(aggregateParameter.value);

            return(new QueriesParameter(ContentQuery.FindFullyQualifiedClassName(new TemplateStandard(TemplateStandardType.Queries), queriesProtocol, contents), ContentQuery.FindFullyQualifiedClassName(new TemplateStandard(TemplateStandardType.QueriesActor), queriesActor, contents)));
        }