Skip to content

[fix] 修正解析参数时dic可能为空的问题,主要是客户端传递了无法解析为字典的json,例如传输了数组; #32

[fix] 修正解析参数时dic可能为空的问题,主要是客户端传递了无法解析为字典的json,例如传输了数组;

[fix] 修正解析参数时dic可能为空的问题,主要是客户端传递了无法解析为字典的json,例如传输了数组; #32

Triggered via push October 28, 2023 00:57
Status Success
Total duration 47s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

20 warnings
test: NewLife.Remoting/Http/HttpCodec.cs#L151
Nullability of reference types in type of parameter 'value' of 'void HttpMessage.Payload.set' doesn't match implicitly implemented member 'void IMessage.Payload.set' (possibly because of nullability attributes).
test: NewLife.Remoting/ApiHost.cs#L17
Nullability of reference types in return type of 'IEncoder? ApiHost.Encoder.get' doesn't match implicitly implemented member 'IEncoder IApiHost.Encoder.get' (possibly because of nullability attributes).
test: NewLife.Remoting/ApiNetServer.cs#L12
Nullability of reference types in return type of 'IApiHost? ApiNetServer.Host.get' doesn't match implicitly implemented member 'IApiHost IApiServer.Host.get' (possibly because of nullability attributes).
test: NewLife.Remoting/ApiServer.cs#L179
Nullability of reference types in type of parameter 'reason' of 'void ApiServer.Stop(string reason)' doesn't match implicitly implemented member 'void IServer.Stop(string? reason)' (possibly because of nullability attributes).
test: NewLife.Remoting/ApiNetServer.cs#L79
Nullability of type of parameter 'value' doesn't match overridden member (possibly because of nullability attributes).
test: NewLife.Remoting/ApiNetServer.cs#L62
Nullability of reference types in return type of 'IDictionary<string, object> ApiNetSession.Parameters.get' doesn't match implicitly implemented member 'IDictionary<string, object?> IApiSession.Parameters.get'.
test: NewLife.Remoting/ApiNetServer.cs#L62
Nullability of reference types in type of parameter 'value' of 'void ApiNetSession.Parameters.set' doesn't match implicitly implemented member 'void IApiSession.Parameters.set'.
test: NewLife.Remoting/ApiNetServer.cs#L79
Nullability of reference types in type of parameter 'value' of 'void ApiNetSession.this[string key].set' doesn't match implicitly implemented member 'void IExtend.this[string key].set' (possibly because of nullability attributes).
test: NewLife.Remoting/ApiNetServer.cs#L161
Cannot convert null literal to non-nullable reference type.
test: NewLife.Remoting/IApiSession.cs#L56
Cannot convert null literal to non-nullable reference type.
test: NewLife.Remoting/Http/HttpCodec.cs#L151
Nullability of reference types in type of parameter 'value' of 'void HttpMessage.Payload.set' doesn't match implicitly implemented member 'void IMessage.Payload.set' (possibly because of nullability attributes).
test: NewLife.Remoting/IApiSession.cs#L56
Cannot convert null literal to non-nullable reference type.
test: NewLife.Remoting/ApiHost.cs#L17
Nullability of reference types in return type of 'IEncoder? ApiHost.Encoder.get' doesn't match implicitly implemented member 'IEncoder IApiHost.Encoder.get' (possibly because of nullability attributes).
test: NewLife.Remoting/ApiNetServer.cs#L12
Nullability of reference types in return type of 'IApiHost? ApiNetServer.Host.get' doesn't match implicitly implemented member 'IApiHost IApiServer.Host.get' (possibly because of nullability attributes).
test: NewLife.Remoting/ApiNetServer.cs#L79
Nullability of type of parameter 'value' doesn't match overridden member (possibly because of nullability attributes).
test: NewLife.Remoting/ApiNetServer.cs#L62
Nullability of reference types in return type of 'IDictionary<string, object> ApiNetSession.Parameters.get' doesn't match implicitly implemented member 'IDictionary<string, object?> IApiSession.Parameters.get'.
test: NewLife.Remoting/ApiNetServer.cs#L62
Nullability of reference types in type of parameter 'value' of 'void ApiNetSession.Parameters.set' doesn't match implicitly implemented member 'void IApiSession.Parameters.set'.
test: NewLife.Remoting/ApiNetServer.cs#L79
Nullability of reference types in type of parameter 'value' of 'void ApiNetSession.this[string key].set' doesn't match implicitly implemented member 'void IExtend.this[string key].set' (possibly because of nullability attributes).
test: NewLife.Remoting/ApiNetServer.cs#L161
Cannot convert null literal to non-nullable reference type.
test: NewLife.Remoting/ApiServer.cs#L179
Nullability of reference types in type of parameter 'reason' of 'void ApiServer.Stop(string reason)' doesn't match implicitly implemented member 'void IServer.Stop(string? reason)' (possibly because of nullability attributes).