|
var deviceMethod = new CloudToDeviceMethod(m_Options.Value.MethodName, TimeSpan.FromSeconds(responseTimeout)); |
current implementation is using: public CloudToDeviceMethod (string methodName, TimeSpan responseTimeout);
is there some good reason not to use?: public CloudToDeviceMethod (string methodName, TimeSpan responseTimeout, TimeSpan connectionTimeout);
See: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.devices.cloudtodevicemethod.-ctor?view=azure-dotnet#Microsoft_Azure_Devices_CloudToDeviceMethod__ctor_System_String_System_TimeSpan_System_TimeSpan_
See also: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods#method-invocation regarding use of connectTimeoutInSeconds
CloudRelay/src/Distech.CloudRelay.API/Services/AzureIotHubAdapter.cs
Line 67 in 6fea56b
current implementation is using:
public CloudToDeviceMethod (string methodName, TimeSpan responseTimeout);is there some good reason not to use?:
public CloudToDeviceMethod (string methodName, TimeSpan responseTimeout, TimeSpan connectionTimeout);See: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.devices.cloudtodevicemethod.-ctor?view=azure-dotnet#Microsoft_Azure_Devices_CloudToDeviceMethod__ctor_System_String_System_TimeSpan_System_TimeSpan_
See also: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods#method-invocation regarding use of
connectTimeoutInSeconds