36 writes to MethodName
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
2790MethodName = "withMatrix", 2822MethodName = "cancellable", 2845MethodName = "setAmount", 3061MethodName = "withArrays", 3378MethodName = "withCallback", 3702MethodName = 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 (12)
AtsTypeScriptCodeGeneratorTests.cs (12)
287MethodName = "name", 299MethodName = "setName", 1583MethodName = methodName, 1845MethodName = methodName, 1867MethodName = methodName, 2850MethodName = "readOnly", 2862MethodName = "mutable", 2874MethodName = "setMutable", 2886MethodName = "run", 3142MethodName = "IWidget.configure", 3257MethodName = "runAsEmulator", 3306MethodName = "startThing",
Aspire.Hosting.RemoteHost (6)
Ats\ExternalCapabilityRegistry.cs (1)
766MethodName = capability.Method,
AtsCapabilityScanner.cs (4)
1759MethodName = getterMethodName, 1802MethodName = setMethodName, 1983MethodName = simpleMethodName, 2158MethodName = methodName,
AtsContextFilter.cs (1)
335MethodName = capability.MethodName,
Aspire.Hosting.RemoteHost.Tests (5)
AtsContextFilterTests.cs (3)
183MethodName = "getResourceName", 499MethodName = "addTestResource", 556MethodName = "addRedis",
ExternalCapabilityRegistryTests.cs (2)
892MethodName = "managedMethod", 918MethodName = "managedMethod",
99 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)
310Assert.Equal("addTestRedis", addTestRedis.MethodName); 313Assert.Equal("withPersistence", withPersistence.MethodName);
Aspire.Hosting.CodeGeneration.Java (2)
AtsJavaCodeGenerator.cs (2)
955RegisterOptionsClass(capability.CapabilityId, capability.MethodName, optionalParameters); 1364var methodName = ToCamelCase(capability.MethodName);
Aspire.Hosting.CodeGeneration.Java.Tests (2)
AtsJavaCodeGeneratorTests.cs (2)
168Assert.Equal("addTestRedis", addTestRedis.MethodName); 171Assert.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, 1206var propName = ExtractPropertyName(getter.MethodName); 1215var setter = setters.FirstOrDefault(s => ExtractPropertyName(s.MethodName).Equals(setterName, StringComparison.OrdinalIgnoreCase)); 1223var setterMethodName = ExtractPropertyName(setter.MethodName); 1347var methodName = !string.IsNullOrEmpty(capability.OwningTypeName) && capability.MethodName.Contains('.') 1348? capability.MethodName[(capability.MethodName.LastIndexOf('.') + 1)..] 1349: capability.MethodName; 1658var methodName = GetPythonMethodName(capability.MethodName); 1816var methodName = GetPythonMethodName(capability.MethodName); 2546var 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)
851WriteLine($" {capability.MethodName}({signature.ParameterList}): {promiseInterfaceName};"); 856WriteLine($" {capability.MethodName}({signature.ParameterList}): Promise<{returnType}>;"); 861WriteLine($" {capability.MethodName}({signature.ParameterList}): {_projector.GetBuilderPromiseInterfaceForMethod(builder, capability)};"); 905WriteLine($" {capability.MethodName}({signature.ParameterList}): {returnPromiseInterfaceName};"); 910WriteLine($" {capability.MethodName}({signature.ParameterList}): Promise<{returnType}>;"); 915WriteLine($" {capability.MethodName}({signature.ParameterList}): {_projector.GetBuilderPromiseInterfaceForMethod(builder, capability)};"); 1084var methodName = capability.MethodName; 1286if (string.Equals(capability.MethodName, "build", StringComparison.OrdinalIgnoreCase)) 1700var methodName = capability.MethodName; 2606var methodName = !string.IsNullOrEmpty(method.OwningTypeName) && method.MethodName.Contains('.') 2607? method.MethodName[(method.MethodName.LastIndexOf('.') + 1)..] 2608: method.MethodName; 2721var methodName = TypeScriptApiProjector.GetTypeScriptMethodName(capability.MethodName); 2837var methodName = !string.IsNullOrEmpty(capability.OwningTypeName) && capability.MethodName.Contains('.') 2838? capability.MethodName[(capability.MethodName.LastIndexOf('.') + 1)..] 2839: 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}", 1302MethodName = capability.MethodName, 2098return GetOptionsInterfaceName(capability.MethodName); 2572var propName = ExtractPropertyName(getter.MethodName); 2581var setter = setters.FirstOrDefault(s => ExtractPropertyName(s.MethodName).Equals(setterName, StringComparison.OrdinalIgnoreCase)); 2589var setterMethodName = ExtractPropertyName(setter.MethodName); 2869entry => GetOptionsInterfaceName(entry.Capability.MethodName),
Aspire.Hosting.CodeGeneration.TypeScript.Tests (10)
AtsTypeScriptCodeGeneratorTests.cs (10)
147Assert.Equal("addTestRedis", addTestRedis.MethodName); 150Assert.Equal("withPersistence", withPersistence.MethodName); 649Assert.Equal("withBrowserLogs", withBrowserLogs.MethodName); 670c.MethodName, 1166Assert.Equal("withVolume", withProjectVolume.MethodName); 1182Assert.Equal("withVolume", withExecutableVolume.MethodName); 1242Assert.Equal("withPersistentVolumeName", capability.MethodName); 1254Assert.Equal("withoutStorageClass", withoutStorageClassCapability.MethodName); 1961Assert.Equal(methodName, capability.MethodName); 1970Assert.Equal(methodName, capability.MethodName);
Aspire.Hosting.RemoteHost (13)
Ats\CapabilityDispatcher.cs (10)
227RegisterMethodAlias(property.Name, capability.MethodName); 297RegisterMethodAlias(property.Name, capability.MethodName); 410RegisterMethodAlias(method.Name, capability.MethodName); 497RegisterMethodAlias(method.Name, capability.MethodName); 595registration.Capability?.MethodName, 617registration.Capability?.MethodName, 632registration.Capability?.MethodName, 811capability.MethodName, 843capability.MethodName, 1026capability.MethodName,
AtsCapabilityScanner.cs (1)
1017.GroupBy(x => (x.Target, x.Capability.MethodName))
AtsContextFilter.cs (1)
335MethodName = capability.MethodName,
CodeGeneration\CodeGenerationService.cs (1)
114MethodName = c.MethodName,
Aspire.Hosting.RemoteHost.Tests (8)
AtsCapabilityScannerTests.cs (5)
330Assert.Equal("executeCommandAsync", capability.MethodName); 402var capability = Assert.Single(result.Capabilities, capability => capability.OwningTypeName == typeName && capability.MethodName == methodName); 417Assert.Equal("withHttpCommand", capability.MethodName); 625Assert.Equal("shadowedExporter", genericCapability.MethodName); 626Assert.Equal("shadowedExporter", specificCapability.MethodName);
ExternalCapabilityRegistryTests.cs (3)
542Assert.Equal("externalMethod", capability.MethodName); 570Assert.Equal("externalMethod", capability.MethodName); 976Assert.Equal("readValue", capability.MethodName);
Aspire.TypeSystem (2)
AtsCapabilityInfo.cs (2)
279? $"{OwningTypeName}.{MethodName}" 280: MethodName;