31 writes to MethodName
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
2738MethodName = "withMatrix", 2770MethodName = "cancellable", 2793MethodName = "setAmount", 3009MethodName = "withArrays", 3326MethodName = "withCallback", 3650MethodName = methodName,
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
412MethodName = shortest.MethodName,
Aspire.Hosting.CodeGeneration.Python.Tests (6)
AtsPythonCodeGeneratorTests.cs (6)
510MethodName = "withFrom", 566MethodName = "withSomethingAI", 642MethodName = "configureGenericResource", 726MethodName = "withNullableUnions", 830MethodName = "withVolume", 852MethodName = "withVolume",
Aspire.Hosting.CodeGeneration.TypeScript.Tests (10)
AtsTypeScriptCodeGeneratorTests.cs (10)
1388MethodName = methodName, 1635MethodName = methodName, 1656MethodName = methodName, 2582MethodName = "readOnly", 2594MethodName = "mutable", 2606MethodName = "setMutable", 2618MethodName = "run", 2874MethodName = "IWidget.configure", 2989MethodName = "runAsEmulator", 3038MethodName = "startThing",
Aspire.Hosting.RemoteHost (5)
AtsCapabilityScanner.cs (4)
1684MethodName = getterMethodName, 1726MethodName = setMethodName, 1905MethodName = simpleMethodName, 2078MethodName = methodName,
AtsContextFilter.cs (1)
335MethodName = capability.MethodName,
Aspire.Hosting.RemoteHost.Tests (3)
AtsContextFilterTests.cs (3)
183MethodName = "getResourceName", 499MethodName = "addTestResource", 556MethodName = "addRedis",
93 references to MethodName
Aspire.Hosting.CodeGeneration.Go (10)
AtsGoCodeGenerator.cs (10)
264var simpleName = $"{ToPascalCase(capability.MethodName)}Options"; 835.OrderBy(c => c.MethodName, StringComparer.Ordinal) 884var methodName = ToPascalCase(capability.MethodName); 1025var methodName = ToPascalCase(capability.MethodName); 1233var methodName = ToPascalCase(capability.MethodName); 1278var methodName = ToPascalCase(capability.MethodName); 1350var methodName = ToPascalCase(capability.MethodName); 1373var methodName = ToPascalCase(capability.MethodName); 1689WriteLine($"// {name} carries optional parameters for {ToPascalCase(capability.MethodName)}."); 1757: $"{ToPascalCase(capability.MethodName)}Options";
Aspire.Hosting.CodeGeneration.Go.Tests (2)
AtsGoCodeGeneratorTests.cs (2)
148Assert.Equal("addTestRedis", addTestRedis.MethodName); 151Assert.Equal("withPersistence", withPersistence.MethodName);
Aspire.Hosting.CodeGeneration.Java (2)
AtsJavaCodeGenerator.cs (2)
940RegisterOptionsClass(capability.CapabilityId, capability.MethodName, optionalParameters); 1345var methodName = ToCamelCase(capability.MethodName);
Aspire.Hosting.CodeGeneration.Java.Tests (2)
AtsJavaCodeGeneratorTests.cs (2)
116Assert.Equal("addTestRedis", addTestRedis.MethodName); 119Assert.Equal("withPersistence", withPersistence.MethodName);
Aspire.Hosting.CodeGeneration.Python (13)
AtsPythonCodeGenerator.cs (13)
374var shortest = items.OrderBy(c => c.MethodName.Length).ThenBy(c => c.MethodName, StringComparer.Ordinal).First(); 412MethodName = shortest.MethodName, 1208var propName = ExtractPropertyName(getter.MethodName); 1217var setter = setters.FirstOrDefault(s => ExtractPropertyName(s.MethodName).Equals(setterName, StringComparison.OrdinalIgnoreCase)); 1225var setterMethodName = ExtractPropertyName(setter.MethodName); 1349var methodName = !string.IsNullOrEmpty(capability.OwningTypeName) && capability.MethodName.Contains('.') 1350? capability.MethodName[(capability.MethodName.LastIndexOf('.') + 1)..] 1351: capability.MethodName; 1660var methodName = GetPythonMethodName(capability.MethodName); 1818var methodName = GetPythonMethodName(capability.MethodName); 2548var methodName = GetMethodParametersName(capability.MethodName);
Aspire.Hosting.CodeGeneration.Python.Tests (2)
AtsPythonCodeGeneratorTests.cs (2)
85Assert.Equal("addTestRedis", addTestRedis.MethodName); 88Assert.Equal("withPersistence", withPersistence.MethodName);
Aspire.Hosting.CodeGeneration.Rust (1)
AtsRustCodeGenerator.cs (1)
459var methodName = ToSnakeCase(capability.MethodName);
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
AtsRustCodeGeneratorTests.cs (2)
144Assert.Equal("addTestRedis", addTestRedis.MethodName); 147Assert.Equal("withPersistence", withPersistence.MethodName);
Aspire.Hosting.CodeGeneration.TypeScript (32)
AtsTypeScriptCodeGenerator.cs (18)
839WriteLine($" {capability.MethodName}({signature.ParameterList}): {promiseInterfaceName};"); 844WriteLine($" {capability.MethodName}({signature.ParameterList}): Promise<{returnType}>;"); 849WriteLine($" {capability.MethodName}({signature.ParameterList}): {_projector.GetBuilderPromiseInterfaceForMethod(builder, capability)};"); 893WriteLine($" {capability.MethodName}({signature.ParameterList}): {returnPromiseInterfaceName};"); 898WriteLine($" {capability.MethodName}({signature.ParameterList}): Promise<{returnType}>;"); 903WriteLine($" {capability.MethodName}({signature.ParameterList}): {_projector.GetBuilderPromiseInterfaceForMethod(builder, capability)};"); 1072var methodName = capability.MethodName; 1274if (string.Equals(capability.MethodName, "build", StringComparison.OrdinalIgnoreCase)) 1688var methodName = capability.MethodName; 2594var methodName = !string.IsNullOrEmpty(method.OwningTypeName) && method.MethodName.Contains('.') 2595? method.MethodName[(method.MethodName.LastIndexOf('.') + 1)..] 2596: method.MethodName; 2709var methodName = TypeScriptApiProjector.GetTypeScriptMethodName(capability.MethodName); 2825var methodName = !string.IsNullOrEmpty(capability.OwningTypeName) && capability.MethodName.Contains('.') 2826? capability.MethodName[(capability.MethodName.LastIndexOf('.') + 1)..] 2827: TypeScriptApiProjector.GetTypeScriptMethodName(capability.MethodName);
TypeScriptApiProjector.cs (14)
282RegisterOptionsInterface(cap.CapabilityId, cap.MethodName, optionalParams, GetCapabilityOwningAssemblyName(context, cap)); 352MethodName = isTypeClass ? ResolveTypeClassMethodName(capability) : capability.MethodName, 381=> !string.IsNullOrEmpty(capability.OwningTypeName) && capability.MethodName.Contains('.') 382? capability.MethodName[(capability.MethodName.LastIndexOf('.') + 1)..] 383: GetTypeScriptMethodName(capability.MethodName); 485foreach (var entryPoint in _resolved.ClientMethods.OrderBy(c => c.MethodName, StringComparer.Ordinal)) 1157Id = $"method:{ownerName}.{capability.MethodName}", 1298MethodName = capability.MethodName, 2094return GetOptionsInterfaceName(capability.MethodName); 2568var propName = ExtractPropertyName(getter.MethodName); 2577var setter = setters.FirstOrDefault(s => ExtractPropertyName(s.MethodName).Equals(setterName, StringComparison.OrdinalIgnoreCase)); 2585var setterMethodName = ExtractPropertyName(setter.MethodName); 2865entry => GetOptionsInterfaceName(entry.Capability.MethodName),
Aspire.Hosting.CodeGeneration.TypeScript.Tests (8)
AtsTypeScriptCodeGeneratorTests.cs (8)
145Assert.Equal("addTestRedis", addTestRedis.MethodName); 148Assert.Equal("withPersistence", withPersistence.MethodName); 544Assert.Equal("withBrowserLogs", withBrowserLogs.MethodName); 565c.MethodName, 1005Assert.Equal("withVolume", withProjectVolume.MethodName); 1021Assert.Equal("withVolume", withExecutableVolume.MethodName); 1749Assert.Equal(methodName, capability.MethodName); 1758Assert.Equal(methodName, capability.MethodName);
Aspire.Hosting.RemoteHost (13)
Ats\CapabilityDispatcher.cs (10)
223RegisterMethodAlias(property.Name, capability.MethodName); 293RegisterMethodAlias(property.Name, capability.MethodName); 406RegisterMethodAlias(method.Name, capability.MethodName); 493RegisterMethodAlias(method.Name, capability.MethodName); 568registration.Capability?.MethodName, 590registration.Capability?.MethodName, 605registration.Capability?.MethodName, 784capability.MethodName, 816capability.MethodName, 999capability.MethodName,
AtsCapabilityScanner.cs (1)
943.GroupBy(x => (x.Target, x.Capability.MethodName))
AtsContextFilter.cs (1)
335MethodName = capability.MethodName,
CodeGeneration\CodeGenerationService.cs (1)
106MethodName = c.MethodName,
Aspire.Hosting.RemoteHost.Tests (4)
AtsCapabilityScannerTests.cs (4)
317Assert.Equal("executeCommandAsync", capability.MethodName); 383Assert.Equal("withHttpCommand", capability.MethodName); 515Assert.Equal("shadowedExporter", genericCapability.MethodName); 516Assert.Equal("shadowedExporter", specificCapability.MethodName);
Aspire.TypeSystem (2)
AtsCapabilityInfo.cs (2)
279? $"{OwningTypeName}.{MethodName}" 280: MethodName;