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)
43
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
52
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
69
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
113
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
137
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
165
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
178
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
203
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
258
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
284
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
293
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
313
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
322
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
342
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
351
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
Integration\StartupTests.cs (2)
408
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
415
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());