I've created a singleton proxy (without dispose option), and all works fine but once I got an 'ObjectDisposedException', I wondered if someone got this also (I never call dispose on the client), the exeption:
ERROR Host.Grpc.Base.RpcProxy.ServiceProxyBase`1[[Host.Grpc.Interfaces.Scan.IPatientRegistrationService, Host.Grpc.Interfaces, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]] - Error status: Error starting gRPC call. HttpRequestException: An error occurred while sending the request. ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.
Hi,
I've created a singleton proxy (without dispose option), and all works fine but once I got an 'ObjectDisposedException', I wondered if someone got this also (I never call dispose on the client), the exeption:
ERROR Host.Grpc.Base.RpcProxy.ServiceProxyBase`1[[Host.Grpc.Interfaces.Scan.IPatientRegistrationService, Host.Grpc.Interfaces, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]] - Error status: Error starting gRPC call. HttpRequestException: An error occurred while sending the request. ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Sockets.NetworkStream'.
Proxy code: