1 write to ResponseType
Microsoft.CodeAnalysis.ExternalAccess.Extensions (1)
Internal\ExtensionMessageHandlerWrapper.cs (1)
26
ResponseType
= customMessageHandlerInterface.GenericTypeArguments[1];
4 references to ResponseType
Microsoft.CodeAnalysis.ExternalAccess.Extensions (4)
Internal\ExtensionMessageHandlerWrapper.cs (4)
30
_responseTaskResultProperty = typeof(Task<>).MakeGenericType(
ResponseType
).GetProperty(nameof(Task<int>.Result));
52
if ((response is null &&
ResponseType
.IsValueType) || (response is not null && !
ResponseType
.IsAssignableFrom(response.GetType())))
54
throw new InvalidOperationException(string.Format(ExternalAccessExtensionsResources.The_message_type_0_is_not_assignable_to_1, response?.GetType().FullName ?? "null",
ResponseType
.FullName));