public static string GetUrlPath(this CqrsControllerConfiguration options, CqrsInfo info)
        {
            var root = (info.IsQuery ? options.QueriesPath : options.CommandsPath).Replace("//", "/").TrimEnd('/').TrimStart('/');
            var uri  = $"/{root}/{info.MethodName}";

            return(uri);
        }
Exemple #2
0
 public ControllerBuilder(IEnumerable <CqrsInfo> cqrs, CqrsControllerConfiguration options)
 {
     _cqrs          = cqrs;
     _options       = options;
     _moduleBuilder = "CqrsInternal".ToNewAssemblyModuleBuilder();
 }