private string ServiceRegistrationMatchString(StartupRegistrationInfo regInfo) { return(regInfo.HasTypeParameters ? $@"\.\s*Add{regInfo.ServiceLifespan}\s*\(\s*typeof\s*\(\s*{regInfo.ServiceBaseType}" + $@"\s*<\s*>\s*\)\s*,\s*typeof\s*\(\s*{regInfo.ServiceClassType}\s*<\s*>\s*\)\s*\)" : $@"\.\s*Add{regInfo.ServiceLifespan}\s*<\s*{regInfo.ServiceBaseType}\s*,\s*" + $@"{regInfo.ServiceClassType}\s*>\s*\(\s*\)"); }
public ServiceStartupRegistration Create( BufferedTokenStream tokenStream, string rootNamespace, StartupRegistrationInfo startupRegInfo, string tabString = null) { return(Create( tokenStream, rootNamespace, new List <StartupRegistrationInfo>() { startupRegInfo }, tabString)); }