MethodCallback Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Delegate for method call. This will be called every time we receive a method call that was registered.
public delegate System.Threading.Tasks.Task<Microsoft.Azure.Devices.Client.MethodResponse> MethodCallback(MethodRequest methodRequest, object userContext);
type MethodCallback = delegate of MethodRequest * obj -> Task<MethodResponse>
Public Delegate Function MethodCallback(methodRequest As MethodRequest, userContext As Object) As Task(Of MethodResponse)
Parameters
- methodRequest
- MethodRequest
Class with details about method.
- userContext
- Object
Context object passed in when the callback was registered.
Return Value
MethodResponse
Remarks
This can be set for both DeviceClient and ModuleClient.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
Azure SDK for .NET