104 references to WriteString
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (2)
137context.Writer.WriteString("type", "azure.bicep.v0"); 146context.Writer.WriteString("path", context.GetManifestRelativePath(path));
Aspire.Hosting.Azure.EventHubs (5)
AzureEventHubsExtensions.cs (3)
265writer.WriteString("Type", "EventHub"); 268writer.WriteString("Name", "emulatorNs1"); 282writer.WriteString("Type", "File"); // "Type": "File"
EventHub.cs (1)
67writer.WriteString(nameof(Name), hub.Name);
EventHubConsumerGroup.cs (1)
49writer.WriteString(nameof(Name), Name);
Aspire.Hosting.Azure.ServiceBus (25)
AzureServiceBusExtensions.cs (1)
383writer.WriteString("Type", "File"); // "Type": "File"
ServiceBusQueue.cs (6)
142writer.WriteString(nameof(Name), queue.Name); 152writer.WriteString(nameof(DefaultMessageTimeToLive), XmlConvert.ToString(queue.DefaultMessageTimeToLive.Value)); 156writer.WriteString(nameof(DuplicateDetectionHistoryTimeWindow), XmlConvert.ToString(queue.DuplicateDetectionHistoryTimeWindow.Value)); 160writer.WriteString(nameof(ForwardDeadLetteredMessagesTo), queue.ForwardDeadLetteredMessagesTo); 164writer.WriteString(nameof(ForwardTo), queue.ForwardTo); 168writer.WriteString(nameof(LockDuration), XmlConvert.ToString(queue.LockDuration.Value));
ServiceBusRule.cs (10)
119writer.WriteString(nameof(ServiceBusQueue.Name), rule.Name); 124writer.WriteString(nameof(FilterType), rule.FilterType switch 142writer.WriteString(nameof(ServiceBusCorrelationFilter.CorrelationId), rule.CorrelationFilter.CorrelationId); 146writer.WriteString(nameof(ServiceBusCorrelationFilter.MessageId), rule.CorrelationFilter.MessageId); 151writer.WriteString("To", rule.CorrelationFilter.SendTo); 155writer.WriteString(nameof(ServiceBusCorrelationFilter.ReplyTo), rule.CorrelationFilter.ReplyTo); 160writer.WriteString("Label", rule.CorrelationFilter.Subject); 164writer.WriteString(nameof(ServiceBusCorrelationFilter.SessionId), rule.CorrelationFilter.SessionId); 168writer.WriteString(nameof(ServiceBusCorrelationFilter.ReplyToSessionId), rule.CorrelationFilter.ReplyToSessionId); 172writer.WriteString(nameof(ServiceBusCorrelationFilter.ContentType), rule.CorrelationFilter.ContentType);
ServiceBusSubscription.cs (5)
133writer.WriteString(nameof(ServiceBusQueue.Name), subscription.Name); 144writer.WriteString(nameof(DefaultMessageTimeToLive), XmlConvert.ToString(subscription.DefaultMessageTimeToLive.Value)); 148writer.WriteString(nameof(ForwardDeadLetteredMessagesTo), subscription.ForwardDeadLetteredMessagesTo); 152writer.WriteString(nameof(ForwardTo), subscription.ForwardTo); 156writer.WriteString(nameof(LockDuration), XmlConvert.ToString(subscription.LockDuration.Value));
ServiceBusTopic.cs (3)
93writer.WriteString(nameof(Name), topic.Name); 99writer.WriteString(nameof(DefaultMessageTimeToLive), XmlConvert.ToString(topic.DefaultMessageTimeToLive.Value)); 103writer.WriteString(nameof(DuplicateDetectionHistoryTimeWindow), XmlConvert.ToString(topic.DuplicateDetectionHistoryTimeWindow.Value));
Aspire.Hosting.Dapr (5)
DaprDistributedApplicationLifecycleHook.cs (2)
236context.Writer.WriteString("type", "dapr.v0"); 239context.Writer.WriteString("application", resource.Name);
IDistributedApplicationBuilderExtensions.cs (2)
88context.Writer.WriteString("type", "dapr.component.v0"); 95context.Writer.WriteString("type", resource.Type);
src\Shared\Utf8JsonWriterExtensions.cs (1)
93writer.WriteString(name, value);
Aspire.Hosting.PostgreSQL (7)
PostgresBuilderExtensions.cs (7)
185writer.WriteString("Name", postgresInstance.Name); 186writer.WriteString("Group", "Servers"); 189writer.WriteString("Host", endpoint.Resource.Name); 191writer.WriteString("Username", postgresInstance.UserNameParameter?.Value ?? "postgres"); 192writer.WriteString("SSLMode", "prefer"); 193writer.WriteString("MaintenanceDB", "postgres"); 194writer.WriteString("PasswordExecCommand", $"echo '{postgresInstance.PasswordParameter.Value}'"); // HACK: Generating a pass file and playing around with chmod is too painful.
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
255writer.WriteString("connectionType", "STANDALONE");
JwtBearerSample (2)
Startup.cs (2)
103writer.WriteString("Description", todo.Description); 104writer.WriteString("Owner", todo.Owner);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\AnyConverter.cs (1)
81writer.WriteString(AnyTypeUrlField, typeUrl);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Infrastructure\DefaultTempDataSerializer.cs (2)
163writer.WriteString(key, stringValue); 204writer.WriteString(element.Key, element.Value);
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Http2Limits.cs (2)
219writer.WriteString(nameof(KeepAlivePingDelay), KeepAlivePingDelay.ToString()); 220writer.WriteString(nameof(KeepAlivePingTimeout), KeepAlivePingTimeout.ToString());
KestrelServerLimits.cs (4)
261writer.WriteString(nameof(KeepAliveTimeout), KeepAliveTimeout.ToString()); 322writer.WriteString(nameof(MinRequestBodyDataRate), MinRequestBodyDataRate?.ToString()); 323writer.WriteString(nameof(MinResponseDataRate), MinResponseDataRate?.ToString()); 324writer.WriteString(nameof(RequestHeadersTimeout), RequestHeadersTimeout.ToString());
KestrelServerOptions.cs (4)
350writer.WriteString(nameof(RequestHeaderEncodingSelector), RequestHeaderEncodingSelector == DefaultHeaderEncodingSelector ? "default" : "configured"); 351writer.WriteString(nameof(ResponseHeaderEncodingSelector), ResponseHeaderEncodingSelector == DefaultHeaderEncodingSelector ? "default" : "configured"); 365writer.WriteString("Address", listenOptions.GetDisplayName()); 368writer.WriteString(nameof(listenOptions.Protocols), listenOptions.Protocols.ToString());
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
586writer.WriteString(value.Key, value.Value);
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Protocol\Internal\Converters\ClassifiedTextRunConverter.cs (1)
56writer.WriteString(ObjectContentConverter.TypeProperty, nameof(ClassifiedTextRun));
Protocol\Internal\Converters\ImageElementConverter.cs (2)
63writer.WriteString(nameof(ImageElement.AutomationName), value.AutomationName); 64writer.WriteString(ObjectContentConverter.TypeProperty, nameof(ImageElement));
Protocol\Internal\Converters\ImageIdConverter.cs (2)
39writer.WriteString(nameof(ImageId.Guid), value.Guid.ToString()); 41writer.WriteString(ObjectContentConverter.TypeProperty, nameof(ImageId));
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (5)
151writer.WriteString("label", label); 163writer.WriteString("detail", completionItem.Detail); 180writer.WriteString("sortText", completionItem.SortText); 185writer.WriteString("filterText", completionItem.FilterText); 190writer.WriteString("insertText", completionItem.InsertText);
Microsoft.Extensions.DependencyModel (19)
DependencyContextWriter.cs (19)
46jsonWriter.WriteString(DependencyContextStrings.RuntimeTargetNamePropertyName, 51jsonWriter.WriteString(DependencyContextStrings.RuntimeTargetNamePropertyName, 54jsonWriter.WriteString(DependencyContextStrings.RuntimeTargetSignaturePropertyName, 104jsonWriter.WriteString(name, value); 206jsonWriter.WriteString(dependency.Name, dependency.Version); 224jsonWriter.WriteString(DependencyContextStrings.LocalePropertyName, resourceAssembly.Locale); 336jsonWriter.WriteString(DependencyContextStrings.RidPropertyName, group.Runtime); 337jsonWriter.WriteString(DependencyContextStrings.AssetTypePropertyName, assetType); 353jsonWriter.WriteString(DependencyContextStrings.RidPropertyName, runtime); 354jsonWriter.WriteString(DependencyContextStrings.AssetTypePropertyName, assetType); 358jsonWriter.WriteString(DependencyContextStrings.AssemblyVersionPropertyName, asset.AssemblyVersion); 363jsonWriter.WriteString(DependencyContextStrings.FileVersionPropertyName, asset.FileVersion); 391jsonWriter.WriteString(DependencyContextStrings.AssemblyVersionPropertyName, runtimeFile.AssemblyVersion); 396jsonWriter.WriteString(DependencyContextStrings.FileVersionPropertyName, runtimeFile.FileVersion); 422jsonWriter.WriteString(DependencyContextStrings.TypePropertyName, library.Type); 424jsonWriter.WriteString(DependencyContextStrings.Sha512PropertyName, library.Hash); 428jsonWriter.WriteString(DependencyContextStrings.PathPropertyName, library.Path); 433jsonWriter.WriteString(DependencyContextStrings.HashPathPropertyName, library.HashPath); 438jsonWriter.WriteString(DependencyContextStrings.RuntimeStoreManifestPropertyName, library.RuntimeStoreManifestName);
Microsoft.Extensions.Logging.Console (8)
JsonConsoleFormatter.cs (8)
69writer.WriteString("Timestamp", stamp.ToString(timestampFormat)); 72writer.WriteString(nameof(LogEntry<object>.LogLevel), GetLogLevelString(logLevel)); 73writer.WriteString(nameof(LogEntry<object>.Category), category); 74writer.WriteString("Message", message); 78writer.WriteString(nameof(Exception), exception); 84writer.WriteString("Message", stateMessage); 150state.WriteString("Message", scope.ToString()); 218writer.WriteString(key, ToInvariantString(item.Value));
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
264writer.WriteString(keyValue.Key, keyValue.Value);
SignalRSamples (2)
Startup.cs (2)
62writer.WriteString(attribute.Key, attribute.Value); 72writer.WriteString("GitHubUrl", $"https://github.com/aspnet/SignalR/commit/{commitHash}");
System.Windows.Forms.Tests (3)
System\Windows\Forms\DataObjectTests.cs (3)
3063writer.WriteString(nameof(WeatherForecast.Date), value.Date.ToString("MM/dd/yyyy")); 3065writer.WriteString(nameof(WeatherForecast.Summary), $"{value.Summary} custom!"); 3066writer.WriteString(nameof(Font.FontFamily), value.Font.FontFamily.Name);