https://learn.microsoft.com/zh-cn/dotnet/api/microsoft.azure.devices.client.moduleclient.setinputmessagehandlerasync?view=azure-dotnet
ModuleClient.SetInputMessageHandlerAsync Method (Microsoft.Azure.Devices.Client) - Azure for .NET...
Sets a new delegate for the particular input. If a delegate is already associated with the input, it will be replaced with the new delegate.
microsoft azuremethoddevicesclient