19 references to ProtobufContentType
Aspire.Dashboard (2)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (2)
86
if (string.Equals(mt.MediaType,
ProtobufContentType
, StringComparison.OrdinalIgnoreCase))
157
httpContext.Response.ContentType =
ProtobufContentType
;
Aspire.Dashboard.Tests (17)
Integration\OtlpHttpServiceTests.cs (15)
44
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
53
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
70
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
114
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
138
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
166
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
179
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
204
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
259
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
285
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
294
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
314
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
323
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
343
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
352
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
Integration\StartupTests.cs (2)
405
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
412
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());