1944 references to AppendLine
aspire (74)
Commands\Sdk\SdkDumpCommand.cs (53)
412sb.AppendLine("# Aspire Type System Capabilities");
413sb.AppendLine("# Generated by: aspire sdk dump --format ci");
419sb.AppendLine("# Diagnostics");
423sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}: {1}{2}", d.Severity.ToLowerInvariant(), d.Message, loc));
429sb.AppendLine("# Handle Types");
446sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}{1}", t.AtsTypeId, flagStr));
453sb.AppendLine("# DTO Types");
458sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0} # {1}", t.TypeId, t.Description));
462sb.AppendLine(t.TypeId);
468sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}{1}: {2}{3}", p.Name, optional, p.Type?.TypeId ?? "unknown", desc));
477sb.AppendLine("# Enum Types");
480sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0} = {1}", t.TypeId, string.Join(" | ", t.Values)));
487sb.AppendLine("# Exported Values");
494sb.AppendLine(string.Format(
506sb.AppendLine("# Capabilities");
515sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}({1}) -> {2}", c.CapabilityId, paramStr, returnStr));
526sb.AppendLine("================================================================================");
527sb.AppendLine(" Aspire Type System Capabilities ");
528sb.AppendLine("================================================================================");
534sb.AppendLine("Summary");
535sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Handle Types: {0}", capabilities.HandleTypes.Count));
536sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " DTO Types: {0}", capabilities.DtoTypes.Count));
537sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Enum Types: {0}", capabilities.EnumTypes.Count));
538sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Exported Values: {0}", capabilities.ExportedValues.Count));
539sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Capabilities: {0}", capabilities.Capabilities.Count));
542sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " Diagnostics: {0} errors, {1} warnings", errorCount, warningCount));
549sb.AppendLine("Diagnostics");
550sb.AppendLine("--------------------------------------------------------------------------------");
554sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0} {1}", icon, d.Message));
557sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " -> {0}", d.Location));
564sb.AppendLine("Handle Types (passed by reference)");
565sb.AppendLine("--------------------------------------------------------------------------------");
587sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}{1}", shortName, flagStr));
594sb.AppendLine("DTO Types (serialized as JSON)");
595sb.AppendLine("--------------------------------------------------------------------------------");
598sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name));
601sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Description));
609sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " - {0}{1}: {2}", p.Name, optional, simpleType));
612sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", p.Description));
622sb.AppendLine("Enum Types");
623sb.AppendLine("--------------------------------------------------------------------------------");
626sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", t.Name));
627sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", string.Join(" | ", t.Values)));
634sb.AppendLine("Exported Values (copied into guest SDKs)");
635sb.AppendLine("--------------------------------------------------------------------------------");
639sb.AppendLine(string.Format(
644sb.AppendLine(string.Format(
650sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", value.Description));
657sb.AppendLine("Capabilities");
658sb.AppendLine("--------------------------------------------------------------------------------");
667sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " [{0}]", group.Key));
677sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}({1}) -> {2}", c.MethodName, paramStr, returnType));
680sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}", c.Description));
Aspire.Cli.Tests (33)
Aspire.Dashboard (2)
Aspire.Dashboard.Components.Tests (3)
Aspire.Dashboard.Tests (4)
Aspire.Deployment.EndToEnd.Tests (18)
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (33)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.AppService (8)
Aspire.Hosting.Azure.Kubernetes (3)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.Blazor (2)
Aspire.Hosting.CodeGeneration.Go (4)
Aspire.Hosting.CodeGeneration.Java (5)
Aspire.Hosting.CodeGeneration.Python (85)
AtsPythonCodeGenerator.cs (49)
1051sb.AppendLine(" def __init__(self, handle: Handle, client: AspireClient) -> None:");
1052sb.AppendLine(" self._handle = handle");
1053sb.AppendLine(" self._client = client");
1055sb.AppendLine(" def __repr__(self) -> str:");
1058sb.AppendLine(" @_uncached_property");
1059sb.AppendLine(" def handle(self) -> Handle:");
1060sb.AppendLine(" \"\"\"The underlying object reference handle.\"\"\"");
1061sb.AppendLine(" return self._handle");
1089sb.AppendLine(" def get(self, name: str) -> InteractionInput | None:");
1090sb.AppendLine(" \"\"\"Get the input with the specified name, or None if no input matches.\"\"\"");
1091sb.AppendLine(" lookup_name = name.lower()");
1092sb.AppendLine(" for interaction_input in self.to_array():");
1093sb.AppendLine(" input_name = interaction_input.get(\"Name\")");
1094sb.AppendLine(" if input_name is not None and input_name.lower() == lookup_name:");
1095sb.AppendLine(" return interaction_input");
1096sb.AppendLine(" return None");
1099sb.AppendLine(" def required(self, name: str) -> InteractionInput:");
1100sb.AppendLine(" \"\"\"Get the input with the specified name, or raise ValueError if no input matches.\"\"\"");
1101sb.AppendLine(" interaction_input = self.get(name)");
1102sb.AppendLine(" if interaction_input is None:");
1103sb.AppendLine(" raise ValueError(f\"no input with name '{name}' was found\")");
1104sb.AppendLine(" return interaction_input");
1107sb.AppendLine(" def value(self, name: str) -> str:");
1108sb.AppendLine(" \"\"\"Get the input value with the specified name, or an empty string if no input matches.\"\"\"");
1109sb.AppendLine(" interaction_input = self.get(name)");
1110sb.AppendLine(" if interaction_input is None:");
1111sb.AppendLine(" return \"\"");
1112sb.AppendLine(" return interaction_input.get(\"Value\") or \"\"");
1115sb.AppendLine(" def required_value(self, name: str) -> str:");
1116sb.AppendLine(" \"\"\"Get the input value with the specified name, or raise ValueError if no input matches.\"\"\"");
1117sb.AppendLine(" return self.required(name).get(\"Value\") or \"\"");
1351sb.AppendLine(" return self");
1497sb.AppendLine(" def __repr__(self) -> str:");
1511sb.AppendLine(" def _wrap_builder(self, builder: typing.Any) -> Handle:");
1512sb.AppendLine(" if isinstance(builder, Handle):");
1513sb.AppendLine(" return builder");
1514sb.AppendLine(" return typing.cast(typing.Self, builder).handle");
1516sb.AppendLine(" @_uncached_property");
1517sb.AppendLine(" def handle(self) -> Handle:");
1518sb.AppendLine(" \"\"\"The underlying object reference handle.\"\"\"");
1519sb.AppendLine(" return self._handle");
1522sbOptions.AppendLine(" \"\"\"Base resource options.\"\"\"");
1569sbConstructor.AppendLine(" self._handle = handle");
1570sbConstructor.AppendLine(" self._client = client");
1571sbConstructor.AppendLine(" if kwargs:");
1572sbConstructor.AppendLine(" raise TypeError(f\"Unexpected keyword arguments: {list(kwargs.keys())}\")");
1576sbConstructor.AppendLine(" super().__init__(handle, client, **kwargs)");
1578sb.AppendLine(sbConstructor.ToString());
1598sb.AppendLine(" @abc.abstractmethod");
Aspire.Hosting.EntityFrameworkCore (16)
Aspire.Hosting.Kubernetes (25)
Aspire.Hosting.Radius (4)
Aspire.Hosting.RemoteHost (1)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Testing.Tests (3)
Aspire.Hosting.Tests (2)
Aspire.Hosting.TestUtilities (3)
Aspire.Playground.Tests (3)
Aspire.Templates.Tests (4)
CodeStyleConfigFileGenerator (3)
Crossgen2Tasks (10)
csc (4)
dotnet (10)
dotnet-dev-certs (4)
dotnet-getdocument (4)
dotnet-openapi (4)
dotnet-sql-cache (4)
dotnet-svcutil-lib (96)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (17)
1414sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "{0}:", this.GetType().ToString()));
1415sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", _defaultAlgorithmSuite.ToString()));
1416sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", _includeTimestamp.ToString()));
1417sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString()));
1418sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", this.MessageSecurityVersion.ToString()));
1419sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString()));
1420sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", _protectTokens.ToString()));
1421sb.AppendLine("EndpointSupportingTokenParameters:");
1422sb.AppendLine(" " + this.EndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
1423sb.AppendLine("OptionalEndpointSupportingTokenParameters:");
1424sb.AppendLine(" " + this.OptionalEndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
1427sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters: none"));
1433sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction));
1434sb.AppendLine(" " + this.OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
1439sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters: none"));
1445sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction));
1446sb.AppendLine(" " + this.OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (15)
593sb.AppendLine(base.ToString());
595sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "TokenType: {0}", _tokenType == null ? "null" : _tokenType));
596sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString()));
597sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "KeySize: {0}", _keySize.ToString(CultureInfo.InvariantCulture)));
598sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", _issuerAddress == null ? "null" : _issuerAddress.ToString()));
599sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", _issuerMetadataAddress == null ? "null" : _issuerMetadataAddress.ToString()));
600sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", _defaultMessageSecurityVersion == null ? "null" : _defaultMessageSecurityVersion.ToString()));
601sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", _useStrTransform.ToString()));
605sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding: null"));
609sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "IssuerBinding:"));
613sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture)));
614sb.AppendLine(" " + bindingElements[i].ToString().Trim().Replace("\n", "\n "));
620sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements: none"));
624sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements:"));
627sb.AppendLine(String.Format(CultureInfo.InvariantCulture, " {0}, optional={1}", _claimTypeRequirements[i].ClaimType, _claimTypeRequirements[i].IsOptional));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (12)
116sb.AppendLine("No endorsing tokens.");
120sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Endorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
121sb.AppendLine(" " + _endorsing[k].ToString().Trim().Replace("\n", "\n "));
125sb.AppendLine("No signed tokens.");
129sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Signed[{0}]", k.ToString(CultureInfo.InvariantCulture)));
130sb.AppendLine(" " + _signed[k].ToString().Trim().Replace("\n", "\n "));
134sb.AppendLine("No signed encrypted tokens.");
138sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEncrypted[{0}]", k.ToString(CultureInfo.InvariantCulture)));
139sb.AppendLine(" " + _signedEncrypted[k].ToString().Trim().Replace("\n", "\n "));
143sb.AppendLine("No signed endorsing tokens.");
147sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEndorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
148sb.AppendLine(" " + _signedEndorsing[k].ToString().Trim().Replace("\n", "\n "));
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (13)
dotnet-user-secrets (8)
EventSourceGenerator (8)
GenerateAnalyzerNuspec (25)
Program.cs (25)
44result.AppendLine(@"<?xml version=""1.0""?>");
45result.AppendLine(@"<package xmlns=""http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"">");
46result.AppendLine(@" <metadata>");
86result.AppendLine(@" <dependencies>");
93result.AppendLine(@" </dependencies>");
96result.AppendLine(@" </metadata>");
98result.AppendLine(@" <files>");
99result.AppendLine(@" $CommonFileElements$");
151result.AppendLine(FileElement(assemblyPathForNuspec, target));
164result.AppendLine(FileElement(resourceAssemblyPathForNuspec, targetForNuspec));
175result.AppendLine(FileElement(fileWithPath, "buildTransitive"));
182result.AppendLine(FileElement(readmeFile, directoryName));
194result.AppendLine(FileElement(fileWithPath, Path.Combine("lib", tfm)));
218result.AppendLine(FileElement(fileWithPath, targetPath));
224result.AppendLine(FileElement(Path.Combine(assetsDir, "Install.ps1"), "tools"));
225result.AppendLine(FileElement(Path.Combine(assetsDir, "Uninstall.ps1"), "tools"));
234result.AppendLine(FileElement(Path.Combine(rulesetsDir, ruleset), "rulesets"));
246result.AppendLine(FileElement(Path.Combine(directory, editorconfig), $"editorconfig\\{directoryName}"));
257result.AppendLine(FileElement(Path.Combine(globalAnalyzerConfigsDir, globalconfig), $"buildTransitive\\config"));
271result.AppendLine(FileElement(fileWithPath, "documentation"));
280result.AppendLine(FileElement(fileWithPath, "documentation"));
289result.AppendLine(FileElement(fileWithPath, "documentation"));
293result.AppendLine(FileElement(Path.Combine(assetsDir, "ThirdPartyNotices.txt"), ""));
294result.AppendLine(@" </files>");
296result.AppendLine(@"</package>");
GenerateDocumentationAndConfigFiles (23)
GetDocument.Insider (4)
ilasm (1)
ILCompiler.RyuJit (1)
ILCompiler.TypeSystem (7)
illink (1)
ILLink.Tasks (27)
Infrastructure.Common (8)
xunit\WcfTestCase.cs (6)
73etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Begins---", DisplayName));
78etwOutput.AppendLine(string.Format(DisplayName + ": " + item.Message, item.Payload.ToArray()));
85etwOutput.AppendLine(String.Format("ETW message encountered FormatException '{0}' using DisplayName '{1}', format '{2}', and '{3}' payload items",
88etwOutput.AppendLine(string.Format("ETW message: {0}, payload below was received", item.Message));
93etwOutput.AppendLine(string.Format("{0}: {1}", DisplayName, payloadPara.ToString()));
98etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Ends---", DisplayName));
Infrastructure.Tests (89)
Microsoft.Agents.AI.ProjectTemplates.Tests (2)
Microsoft.AspNetCore.Components.AI.SourceGenerators (146)
ToolBlockEmitter.cs (146)
18sb.AppendLine("// <auto-generated/>");
19sb.AppendLine("#nullable enable");
24sb.AppendLine($"namespace {candidate.Namespace};");
30sb.AppendLine($"[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]");
31sb.AppendLine($"internal sealed class {className}");
32sb.AppendLine($" : global::Microsoft.AspNetCore.Components.AI.ContentBlockHandler<{blockType}>");
33sb.AppendLine("{");
34sb.AppendLine($" public override global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}> Handle(");
35sb.AppendLine($" global::Microsoft.AspNetCore.Components.AI.BlockMappingContext context,");
36sb.AppendLine($" {blockType} state)");
37sb.AppendLine(" {");
38sb.AppendLine(" if (state.Result is not null)");
39sb.AppendLine(" {");
40sb.AppendLine($" return global::Microsoft.AspNetCore.Components.AI");
41sb.AppendLine($" .BlockMappingResult<{blockType}>.Complete();");
42sb.AppendLine(" }");
44sb.AppendLine(" var shouldEmit = false;");
48sb.AppendLine(" if (state.Call is null)");
49sb.AppendLine(" {");
50sb.AppendLine(" global::Microsoft.Extensions.AI.FunctionCallContent? callContent = null;");
51sb.AppendLine(" foreach (var content in context.UnhandledContents)");
52sb.AppendLine(" {");
53sb.AppendLine(" if (content is global::Microsoft.Extensions.AI.FunctionCallContent fc");
54sb.AppendLine($" && fc.Name == \"{EscapeString(candidate.ToolName)}\")");
55sb.AppendLine(" {");
56sb.AppendLine(" callContent = fc;");
57sb.AppendLine(" break;");
58sb.AppendLine(" }");
59sb.AppendLine(" }");
61sb.AppendLine(" if (callContent is not null)");
62sb.AppendLine(" {");
63sb.AppendLine(" context.MarkHandled(callContent);");
64sb.AppendLine(" state.Call = callContent;");
65sb.AppendLine(" shouldEmit = true;");
71sb.AppendLine(" if (callContent.Arguments is { } args)");
72sb.AppendLine(" {");
78sb.AppendLine($" if (args.TryGetValue(\"{EscapeString(param.ArgumentKey)}\", out var {varName}) && {varName} is not null)");
79sb.AppendLine(" {");
80sb.AppendLine($" {member} = {varName} switch");
81sb.AppendLine(" {");
83sb.AppendLine(" };");
84sb.AppendLine(" }");
87sb.AppendLine(" }");
90sb.AppendLine(" }");
91sb.AppendLine(" }");
95sb.AppendLine(" global::Microsoft.Extensions.AI.FunctionResultContent? resultContent = null;");
96sb.AppendLine(" foreach (var content in context.UnhandledContents)");
97sb.AppendLine(" {");
98sb.AppendLine(" if (content is global::Microsoft.Extensions.AI.FunctionResultContent frc");
99sb.AppendLine(" && state.Call is not null");
100sb.AppendLine(" && frc.CallId == state.Call.CallId)");
101sb.AppendLine(" {");
102sb.AppendLine(" resultContent = frc;");
103sb.AppendLine(" break;");
104sb.AppendLine(" }");
105sb.AppendLine(" }");
107sb.AppendLine(" if (resultContent is not null)");
108sb.AppendLine(" {");
109sb.AppendLine(" context.MarkHandled(resultContent);");
110sb.AppendLine(" state.Result = resultContent;");
116sb.AppendLine(" if (resultContent.Result is not null)");
117sb.AppendLine(" {");
125sb.AppendLine($" var {varName} = resultContent.Result;");
126sb.AppendLine($" {member} = {varName} switch");
127sb.AppendLine(" {");
129sb.AppendLine(" };");
134sb.AppendLine(" var __resultObj = resultContent.Result switch");
135sb.AppendLine(" {");
136sb.AppendLine(" global::System.Text.Json.JsonElement __element => __element,");
137sb.AppendLine(" string __json => global::System.Text.Json.JsonSerializer.Deserialize<global::System.Text.Json.JsonElement>(__json),");
138sb.AppendLine(" _ => global::System.Text.Json.JsonSerializer.SerializeToElement(resultContent.Result),");
139sb.AppendLine(" };");
141sb.AppendLine(" if (__resultObj.ValueKind == global::System.Text.Json.JsonValueKind.Object)");
142sb.AppendLine(" {");
148sb.AppendLine($" if (__resultObj.TryGetProperty(\"{EscapeString(rp.ResultKey)}\", out var {varName}))");
149sb.AppendLine(" {");
150sb.AppendLine($" {member} = {varName} switch");
151sb.AppendLine(" {");
153sb.AppendLine(" };");
154sb.AppendLine(" }");
157sb.AppendLine(" }");
160sb.AppendLine(" }");
163sb.AppendLine(" return shouldEmit");
164sb.AppendLine($" ? global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}>.Emit(state, state)");
165sb.AppendLine($" : global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}>.Complete();");
166sb.AppendLine(" }");
168sb.AppendLine(" return shouldEmit");
169sb.AppendLine($" ? global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}>.Emit(state, state)");
170sb.AppendLine($" : global::Microsoft.AspNetCore.Components.AI.BlockMappingResult<{blockType}>.Pass();");
171sb.AppendLine(" }");
172sb.AppendLine("}");
202sb.AppendLine("// <auto-generated/>");
203sb.AppendLine("#nullable enable");
205sb.AppendLine("namespace Microsoft.AspNetCore.Components.AI;");
207sb.AppendLine("[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]");
208sb.AppendLine("internal static class GeneratedToolBlockRegistrations");
209sb.AppendLine("{");
210sb.AppendLine(" internal static void AddGeneratedToolBlocks(this UIAgentOptions options)");
211sb.AppendLine(" {");
219sb.AppendLine($" options.AddBlockHandler(new {fullClass}());");
222sb.AppendLine(" }");
223sb.AppendLine("}");
266sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetString()!,");
267sb.AppendLine($" string __s => __s,");
268sb.AppendLine($" _ => (string){varName}!");
271sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetInt32(),");
272sb.AppendLine($" _ => global::System.Convert.ToInt32({varName})");
275sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetInt64(),");
276sb.AppendLine($" _ => global::System.Convert.ToInt64({varName})");
279sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetDouble(),");
280sb.AppendLine($" _ => global::System.Convert.ToDouble({varName})");
283sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetSingle(),");
284sb.AppendLine($" _ => global::System.Convert.ToSingle({varName})");
287sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetDecimal(),");
288sb.AppendLine($" _ => global::System.Convert.ToDecimal({varName})");
291sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetBoolean(),");
292sb.AppendLine($" _ => global::System.Convert.ToBoolean({varName})");
295sb.AppendLine($" global::System.Text.Json.JsonElement __je => global::System.Text.Json.JsonSerializer.Deserialize<{param.TypeName}>(__je)!,");
296sb.AppendLine($" _ => ({param.TypeName}){varName}!");
312sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetString()!,");
313sb.AppendLine($" string __s => __s,");
314sb.AppendLine($" _ => {varName}!.ToString()!");
317sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetInt32(),");
318sb.AppendLine($" _ => global::System.Convert.ToInt32({varName})");
321sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetInt64(),");
322sb.AppendLine($" _ => global::System.Convert.ToInt64({varName})");
325sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetDouble(),");
326sb.AppendLine($" _ => global::System.Convert.ToDouble({varName})");
329sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetSingle(),");
330sb.AppendLine($" _ => global::System.Convert.ToSingle({varName})");
333sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetDecimal(),");
334sb.AppendLine($" _ => global::System.Convert.ToDecimal({varName})");
337sb.AppendLine($" global::System.Text.Json.JsonElement __je => __je.GetBoolean(),");
338sb.AppendLine($" _ => global::System.Convert.ToBoolean({varName})");
341sb.AppendLine($" global::System.Text.Json.JsonElement __je => global::System.Text.Json.JsonSerializer.Deserialize<{prop.TypeName}>(__je)!,");
342sb.AppendLine($" string __json => global::System.Text.Json.JsonSerializer.Deserialize<{prop.TypeName}>(__json)!,");
343sb.AppendLine($" _ => ({prop.TypeName}){varName}!");
354sb.AppendLine($" global::System.Text.Json.JsonElement {{ ValueKind: global::System.Text.Json.JsonValueKind.String }} => {varName}.GetString()!,");
355sb.AppendLine($" _ => {varName}.GetRawText()");
358sb.AppendLine($" _ => {varName}.GetInt32()");
361sb.AppendLine($" _ => {varName}.GetInt64()");
364sb.AppendLine($" _ => {varName}.GetDouble()");
367sb.AppendLine($" _ => {varName}.GetSingle()");
370sb.AppendLine($" _ => {varName}.GetDecimal()");
373sb.AppendLine($" _ => {varName}.GetBoolean()");
376sb.AppendLine($" _ => global::System.Text.Json.JsonSerializer.Deserialize<{prop.TypeName}>({varName})!");
Microsoft.AspNetCore.Components.Testing (3)
Microsoft.AspNetCore.Components.Testing.Generators (64)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Http.Extensions (17)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.OpenApi (2)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Microsoft.AspNetCore.Routing (5)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (3)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.Build (9)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis (6)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Utilities.Core (2)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (20)
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
Microsoft.CodeAnalysis.CodeStyle (8)
Microsoft.CodeAnalysis.CSharp (26)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.Features (7)
Microsoft.CodeAnalysis.NetAnalyzers (9)
Microsoft.CodeAnalysis.Razor.Compiler (5)
Microsoft.CodeAnalysis.ResxSourceGenerator (27)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.Diagnostics.DataContractReader.DataGenerator (82)
Emitter.cs (82)
33sb.AppendLine("// <auto-generated/>");
34sb.AppendLine("#nullable enable");
36sb.AppendLine("using Microsoft.Diagnostics.DataContractReader;");
37sb.AppendLine("using Microsoft.Diagnostics.DataContractReader.Contracts;");
42sb.AppendLine("using Microsoft.Diagnostics.DataContractReader.Generated;");
47sb.AppendLine($"namespace {model.Namespace};");
51sb.AppendLine(BuildClassDoc(model));
55sb.AppendLine($"partial class {model.ClassName} : global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData");
57sb.AppendLine($"partial class {model.ClassName}");
58sb.AppendLine("{");
64sb.AppendLine($" private static readonly string[] _typeNames = {namesLiteral};");
71sb.AppendLine($" public static {ITypeHandleType} TypeHandle({Target} target)");
72sb.AppendLine($" => TypeNameResolver.GetTypeHandle(target, _typeNames);");
78sb.AppendLine(" [UsesDataDescriptorTypeSize]");
79sb.AppendLine($" public static uint GetSize({Target} target)");
80sb.AppendLine(" => checked((uint)LayoutSet.Resolve(target, _typeNames).InstanceSize);");
86sb.AppendLine($" public {TargetPointer} Address {{ get; }}");
93sb.AppendLine($" private readonly {Target} _target;");
104sb.AppendLine(" private readonly LayoutSet _layouts;");
135sb.AppendLine("}");
148sb.AppendLine($" public static int Get{member.Name}Offset({Target} target)");
151sb.AppendLine($" => {offset};");
155sb.AppendLine(" {");
156sb.AppendLine(" LayoutSet layouts = LayoutSet.Resolve(target, _typeNames);");
157sb.AppendLine($" layouts.Select(default, out var type, out _, out var name, {NameArgs(member)});");
158sb.AppendLine(" return type.Fields[name].Offset;");
159sb.AppendLine(" }");
195sb.AppendLine($" public void Write{member.Name}({propType} value)");
196sb.AppendLine(" {");
197sb.AppendLine($" _layouts.Select(Address, out var t, out var b, out var n, {NameArgs(member)});");
200sb.AppendLine($" _target.WriteField<byte>(b, t, n, (byte)(value ? 1 : 0));");
204sb.AppendLine($" _target.WriteNUIntField(b, t, n, value);");
209sb.AppendLine($" _target.WriteField<{typeArg}>(b, t, n, value);");
211sb.AppendLine($" {member.Name} = value;");
212sb.AppendLine(" }");
218sb.AppendLine($" public {model.ClassName}({Target} target, {TargetPointer} address)");
219sb.AppendLine(" {");
220sb.AppendLine(" Address = address;");
224sb.AppendLine(" _target = target;");
229sb.AppendLine(" _layouts = LayoutSet.Resolve(target, _typeNames);");
232sb.AppendLine(" }");
278sb.AppendLine($" [System.Diagnostics.CodeAnalysis.SuppressMessage(\"Performance\", \"CA1822:Mark members as static\", Justification = \"Generated lazy initializer; may read instance members.\")]");
279sb.AppendLine($" private partial {Shorten(member.PropertyOrReturnTypeFqn)} {initializerName}({Target} target, {TargetPointer} address);");
320sb.AppendLine($" private {propType} {valueField} = default!;");
321sb.AppendLine($" private bool {readFlag};");
323sb.AppendLine($" public partial {propType} {member.Name}");
324sb.AppendLine(" {");
325sb.AppendLine(" get");
326sb.AppendLine(" {");
327sb.AppendLine($" if (!{readFlag})");
328sb.AppendLine(" {");
330sb.AppendLine(line);
331sb.AppendLine($" {readFlag} = true;");
332sb.AppendLine(" }");
333sb.AppendLine($" return {valueField};");
334sb.AppendLine(" }");
337sb.AppendLine(" private set");
338sb.AppendLine(" {");
339sb.AppendLine($" {valueField} = value;");
340sb.AppendLine($" {readFlag} = true;");
341sb.AppendLine(" }");
343sb.AppendLine(" }");
356sb.AppendLine(" [UsesDataDescriptorTypeSize]");
361sb.AppendLine(
378sb.AppendLine(" void global::Microsoft.Diagnostics.DataContractReader.Data.IReadableData.EnsureAllFieldsRead()");
379sb.AppendLine(" {");
387sb.AppendLine($" _ = {member.Name};");
390sb.AppendLine(" }");
407sb.AppendLine(
411sb.AppendLine(" [UsesDataDescriptorTypeSize]");
467sb.AppendLine($" static {model.ClassName} {IDataInterface}<{model.ClassName}>.Create({Target} target, {TargetPointer} address)");
468sb.AppendLine($" => new {model.ClassName}(target, address);");
523sb.AppendLine($" public static partial {TargetPointer} {member.Name}({Target} target)");
524sb.AppendLine($" => TypeNameResolver.GetStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\");");
530sb.AppendLine($" public static partial {TargetPointer}? {member.Name}({Target} target)");
531sb.AppendLine(" {");
532sb.AppendLine($" if (TypeNameResolver.TryGetStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\", out {TargetPointer} address))");
533sb.AppendLine($" return target.ReadPointer(address);");
534sb.AppendLine($" return null;");
535sb.AppendLine(" }");
541sb.AppendLine($" public static partial {TargetPointer} {member.Name}({Target} target, {TargetPointer} thread)");
542sb.AppendLine($" => TypeNameResolver.GetThreadStaticFieldAddress(target, _typeNames, \"{member.DescriptorOrFieldName}\", thread);");
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Tasks.Installers (18)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.GenFacades (5)
Microsoft.DotNet.HotReload.Utils.Generator (1)
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.Templates.Tests (2)
Microsoft.Extensions.Configuration.Abstractions (2)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Logging.AzureAppServices (3)
Microsoft.Extensions.Logging.EventLog (5)
Microsoft.Extensions.Logging.Generators (9)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Microsoft.Gen.BuildMetadata (2)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ContextualOptions (2)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Gen.Metrics (2)
Microsoft.Gen.Metrics.Unit.Tests (4)
Microsoft.Gen.MetricsReports (2)
Microsoft.Maui.Controls (2)
Microsoft.Maui.Controls.SourceGen (30)
CodeBehindGenerator.cs (30)
284 sb.AppendLine(AutoGeneratedHeaderText);
290 sb.AppendLine($"[assembly: global::Microsoft.Maui.Controls.Xaml.XamlResourceId(\"{projItem.ManifestResourceName}\", \"{projItem.TargetPath.Replace('\\', '/')}\", {(rootType == null ? "null" : "typeof(global::" + rootClrNamespace + "." + rootType + ")")})]");
304 sb.AppendLine($"namespace {rootClrNamespace}");
305 sb.AppendLine("{");
306 sb.AppendLine($"\t[global::Microsoft.Maui.Controls.Xaml.XamlFilePath(\"{projItem.RelativePath?.Replace("\\", "\\\\")}\")]");
309 sb.AppendLine($"\t[global::Microsoft.Maui.Controls.Xaml.XamlCompilation(global::Microsoft.Maui.Controls.Xaml.XamlCompilationOptions.Compile)]");
314 sb.AppendLine($"\t[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]");
317 sb.AppendLine($"\t{accessModifier} partial class {rootType} : {baseType}");
318 sb.AppendLine("\t{");
323 sb.AppendLine($"\t\t[global::System.CodeDom.Compiler.GeneratedCode(\"Microsoft.Maui.Controls.SourceGen\", \"1.0.0.0\")]");
324 sb.AppendLine($"\t\tpublic {rootType}()");
325 sb.AppendLine("\t\t{");
326 sb.AppendLine("\t\t\tInitializeComponent();");
327 sb.AppendLine("\t\t}");
336 sb.AppendLine($"\t\t[global::System.CodeDom.Compiler.GeneratedCode(\"Microsoft.Maui.Controls.SourceGen\", \"1.0.0.0\")]");
338 sb.AppendLine($"\t\t{faccess} {ftype} {EscapeIdentifier(fname)};");
344 sb.AppendLine($"\t\t[global::System.CodeDom.Compiler.GeneratedCode(\"Microsoft.Maui.Controls.SourceGen\", \"1.0.0.0\")]");
349 sb.AppendLine($"#if NET5_0_OR_GREATER");
353 sb.AppendLine($"\t\t[global::System.Diagnostics.CodeAnalysis.MemberNotNullAttribute(nameof({EscapeIdentifier(fname)}))]");
356 sb.AppendLine($"#endif");
359 sb.AppendLine("\t\tprivate void InitializeComponent()");
360 sb.AppendLine("\t\t{");
361 sb.AppendLine("#pragma warning disable IL2026, IL3050 // The body of InitializeComponent will be replaced by XamlC so LoadFromXaml will never be called in production builds");
362 sb.AppendLine($"\t\t\tglobal::Microsoft.Maui.Controls.Xaml.Extensions.LoadFromXaml(this, typeof({rootType}));");
368 sb.AppendLine($"\t\t\t{EscapeIdentifier(fname)} = global::Microsoft.Maui.Controls.NameScopeExtensions.FindByName<{ftype}>(this, \"{fname}\");");
371 sb.AppendLine("#pragma warning restore IL2026, IL3050");
373 sb.AppendLine("\t\t}");
374 sb.AppendLine("\t}");
375 sb.AppendLine("}");
637 sb.AppendLine($"[assembly: global::Microsoft.Maui.Controls.Xaml.XamlResourceId(\"{projItem.ManifestResourceName}\", \"{projItem.TargetPath.Replace('\\', '/')}\", null)]");
Microsoft.Maui.Essentials (1)
Microsoft.ML.Data (17)
Microsoft.ML.FastTree (2)
Microsoft.ML.GenAI.LLaMA.Tests (2)
Microsoft.ML.GenAI.Mistral.Tests (2)
Microsoft.ML.GenAI.Phi.Tests (3)
Microsoft.ML.StandardTrainers (16)
Microsoft.NET.Build.Containers (2)
Microsoft.NET.Build.Tasks (39)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (7)
Microsoft.NET.Sdk.Publish.Tasks (2)
Microsoft.NET.Sdk.Razor.Tasks (49)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (9)
Microsoft.NET.StringTools (5)
Microsoft.TemplateEngine.Cli (12)
Microsoft.TemplateEngine.Edge (3)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
Microsoft.TemplateSearch.Common (1)
Microsoft.TestPlatform.CrossPlatEngine (2)
Microsoft.TestPlatform.Utilities (1)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
Microsoft.VisualStudio.TestPlatform.Common (4)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
NuGet.CommandLine.XPlat (2)
NuGet.Commands (6)
TrustedSignersCommand\TrustedSignersCommandRunner.cs (5)
225trustedSignerBuilder.AppendLine(index + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogTitle, item.Name, item.ElementName));
229trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogServiceIndex, repoItem.ServiceIndex));
233trustedSignerBuilder.AppendLine(defaultIndentation + string.Format(CultureInfo.CurrentCulture, Strings.TrustedSignerLogOwners, string.Join("; ", repoItem.Owners)));
237trustedSignerBuilder.AppendLine(defaultIndentation + Strings.TrustedSignerLogCertificates);
244trustedSignerBuilder.AppendLine(defaultIndentation + extraIndentation + string.Format(CultureInfo.CurrentCulture, summaryAllowUntrustedRoot, cert.HashAlgorithm.ToString(), cert.Fingerprint));
NuGet.Common (1)
NuGet.Credentials (1)
NuGet.PackageManagement (1)
NuGet.Packaging (28)
Signing\Utility\CertificateUtility.cs (10)
74certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateSubjectName, cert.Subject));
75certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHashSha1, cert.Thumbprint));
76certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateHash, fingerprintAlgorithm.ToString(), certificateFingerprint));
77certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateIssuer, cert.IssuerName.Name));
78certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateValidity, cert.NotBefore, cert.NotAfter));
82certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateCrlUrl, url));
87certStringBuilder.AppendLine(indentation + string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityCertificateOcspUrl, url));
112collectionStringBuilder.AppendLine(Strings.CertUtilityMultipleCertificatesHeader);
123collectionStringBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityMultipleCertificatesFooter, certCollection.Count - ChainDepthLimit));
145collectionStringBuilder.AppendLine(string.Format(CultureInfo.CurrentCulture, Strings.CertUtilityMultipleCertificatesFooter, chainElementsCount - ChainDepthLimit));
PresentationFramework (7)
Roslyn.Diagnostics.Analyzers (15)
Roslyn.Diagnostics.CSharp.Analyzers (1)
rzc (4)
ScenarioTests.Common.Tests (22)
sdk-tasks (2)
Security.TransportSecurity.IntegrationTests (12)
Https\HttpsTests.4.1.0.cs (12)
91errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
96errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
99errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
130errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
135errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
138errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
169errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
174errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
177errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
208errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
213errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
216errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
SelectTests (37)
Stress.ApiService (1)
SuperFileCheck (6)
System.ComponentModel.Composition (2)
System.Data.OleDb (1)
System.Diagnostics.FileVersionInfo (13)
System.Linq.Expressions (8)
System.Net.Http.WinHttpHandler (3)
System.Numerics.Tensors (5)
System.Private.CoreLib (46)
System.Private.TypeLoader (11)
System.Private.Xml (5)
System.Security.Cryptography (25)
System.ServiceModel.Primitives (57)
System\ServiceModel\Channels\SecurityBindingElement.cs (17)
606sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}:", GetType().ToString()));
607sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultAlgorithmSuite: {0}", _defaultAlgorithmSuite.ToString()));
608sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IncludeTimestamp: {0}", IncludeTimestamp.ToString()));
609sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyEntropyMode: {0}", _keyEntropyMode.ToString()));
610sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "MessageSecurityVersion: {0}", MessageSecurityVersion.ToString()));
611sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "SecurityHeaderLayout: {0}", _securityHeaderLayout.ToString()));
612sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ProtectTokens: {0}", _protectTokens.ToString()));
613sb.AppendLine("EndpointSupportingTokenParameters:");
614sb.AppendLine(" " + EndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
615sb.AppendLine("OptionalEndpointSupportingTokenParameters:");
616sb.AppendLine(" " + OptionalEndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n "));
620sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters: none"));
626sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OperationSupportingTokenParameters[\"{0}\"]:", requestAction));
627sb.AppendLine(" " + OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
633sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters: none"));
639sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "OptionalOperationSupportingTokenParameters[\"{0}\"]:", requestAction));
640sb.AppendLine(" " + OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (15)
151sb.AppendLine(base.ToString());
153sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "TokenType: {0}", TokenType == null ? "null" : TokenType));
154sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeyType: {0}", _keyType.ToString()));
155sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "KeySize: {0}", _keySize.ToString(CultureInfo.InvariantCulture)));
156sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerAddress: {0}", IssuerAddress == null ? "null" : IssuerAddress.ToString()));
157sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerMetadataAddress: {0}", IssuerMetadataAddress == null ? "null" : IssuerMetadataAddress.ToString()));
158sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "DefaultMessgeSecurityVersion: {0}", DefaultMessageSecurityVersion == null ? "null" : DefaultMessageSecurityVersion.ToString()));
159sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "UseStrTransform: {0}", UseStrTransform.ToString()));
163sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerBinding: null"));
167sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "IssuerBinding:"));
171sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " BindingElement[{0}]:", i.ToString(CultureInfo.InvariantCulture)));
172sb.AppendLine(" " + bindingElements[i].ToString().Trim().Replace("\n", "\n "));
178sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements: none"));
182sb.AppendLine(string.Format(CultureInfo.InvariantCulture, "ClaimTypeRequirements:"));
185sb.AppendLine(string.Format(CultureInfo.InvariantCulture, " {0}, optional={1}", ClaimTypeRequirements[i].ClaimType, ClaimTypeRequirements[i].IsOptional));
System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (12)
117sb.AppendLine("No endorsing tokens.");
123sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Endorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
124sb.AppendLine(" " + Endorsing[k].ToString().Trim().Replace("\n", "\n "));
130sb.AppendLine("No signed tokens.");
136sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "Signed[{0}]", k.ToString(CultureInfo.InvariantCulture)));
137sb.AppendLine(" " + Signed[k].ToString().Trim().Replace("\n", "\n "));
143sb.AppendLine("No signed encrypted tokens.");
149sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEncrypted[{0}]", k.ToString(CultureInfo.InvariantCulture)));
150sb.AppendLine(" " + SignedEncrypted[k].ToString().Trim().Replace("\n", "\n "));
156sb.AppendLine("No signed endorsing tokens.");
162sb.AppendLine(String.Format(CultureInfo.InvariantCulture, "SignedEndorsing[{0}]", k.ToString(CultureInfo.InvariantCulture)));
163sb.AppendLine(" " + _signedEndorsing[k].ToString().Trim().Replace("\n", "\n "));
System.ServiceModel.Primitives.Tests (2)
System.Text.Json.SourceGeneration (7)
System.Text.RegularExpressions (2)
System.Text.RegularExpressions.Generator (2)
System.Windows.Forms (3)
System.Windows.Forms.PrivateSourceGenerators (12)
System.Windows.Input.Manipulations (7)
TypeScriptApiCompat (14)
ApiCompatReport.cs (14)
15builder.AppendLine("# TypeScript API compatibility report");
22builder.AppendLine("No undeclared TypeScript API compatibility breaks were found.");
26builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "Suppressed diagnostics: {0}", result.SuppressedDiagnostics.Count));
34builder.AppendLine("## Unsuppressed breaking changes");
38builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- `{0}` `{1}` `{2}` - {3}", diagnostic.Kind, diagnostic.PackageName, diagnostic.Symbol, diagnostic.Message));
46builder.AppendLine("## Suppression file errors");
50builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- {0}", error));
58builder.AppendLine("## Unused suppressions");
62builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- `{0}` `{1}` `{2}` at `{3}:{4}`", suppression.Kind, suppression.PackageName, suppression.Symbol, suppression.FilePath, suppression.LineNumber));
70builder.AppendLine("## Suppressed breaking changes");
74builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- `{0}` `{1}` `{2}` - {3}", diagnostic.Kind, diagnostic.PackageName, diagnostic.Symbol, diagnostic.Message));
88builder.AppendLine("## Excluded packages");
90builder.AppendLine("These packages set `DisablePackageBaselineValidation=true`, so TypeScript API compatibility is not enforced for them.");
95builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "- `{0}`", packageName));
UnitTests.Common (44)
TestHelpers.cs (25)
101errorBuilder.AppendLine(results);
106errorBuilder.AppendLine(String.Format("Unexpected exception was caught: {0}", ex.ToString()));
128errorBuilder.AppendLine(String.Format("{0} expected Type = {0}, actual = {1}", prefix, expectedType, contractType));
135errorBuilder.AppendLine(String.Format("{0} operations.Count: expected={1}, actual = {2}", prefix, expectedOperations.Length, ops.Count));
144errorBuilder.AppendLine(String.Format("{0} operations: could not find operation {1}", prefix, expectedOp.Name));
151errorBuilder.AppendLine(String.Format("{0} expected operation Name = {1}, actual = {2}",
158errorBuilder.AppendLine(String.Format("{0} expected operation {1}.IsOneWay = {2}, actual = {3}",
166errorBuilder.AppendLine(String.Format("{0} expected operation {1}.HasTask = {2}, actual = {3}",
178errorBuilder.AppendLine(String.Format("{0} could not find expected message action {1} in operation {2}",
186errorBuilder.AppendLine(String.Format("{0} message action {1} expected Direction = {2}, actual = {3}",
194errorBuilder.AppendLine(String.Format("{0} message action {1} expected MessageType = {2}, actual = {3}",
213errorBuilder.AppendLine(String.Format("{0} unexpected exception was caught: {1}",
226errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part count = {2}, actual = {3}",
243errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part Name = {2} but did not find it.",
250errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part Name = {2}, actual = {3}",
256errorBuilder.AppendLine(String.Format("action {0}, section {1}, name {2}, expected Type = {3}, actual = {4}",
262errorBuilder.AppendLine(String.Format("action {0}, section {1}, name {2}, expected Multiple = {3}, actual = {4}",
379errorBuilder.AppendLine(String.Format("AddBindingParameters {1}", errorMessage));
383errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));
387errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(BindingParameterCollection).ToString()));
398errorBuilder.AppendLine(String.Format("ApplyClientBehavior {1}", errorMessage));
402errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));
406errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(ClientOperation).ToString()));
423errorBuilder.AppendLine(String.Format("Validate {1}", errorMessage));
428errorBuilder.AppendLine(String.Format("The parameter passed into the Validate method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));
vbc (4)
VBCSCompiler (4)
vstest.console (7)
vstest.console.arm64 (7)