คำถามติดแท็ก azureservicebus

1
ทำไม RegisterMessageHandler ไม่ทำงานกับชื่อหัวข้อเฉพาะ
ฉันไม่เข้าใจว่าทำไมตัวจัดการต่อไปนี้ ( processMessageAsync ) ที่อ้างอิงด้านล่างไม่ถูกเรียกใช้สำหรับชื่อหัวข้อที่ระบุ แต่สำเร็จสำหรับชื่อหัวข้ออื่น: subscriptionClient.RegisterMessageHandler(processMessageAsync, msgOptions) ต่อไปนี้เป็นคลาสสมาชิกของฉัน: open System open System.Linq open System.Threading open System.Text open System.Threading.Tasks open Microsoft.Azure.ServiceBus type Subscriber(connectionString:string, topic:string, subscription:string) = let mutable subscriptionClient : SubscriptionClient = null let exceptionReceivedHandler (args:ExceptionReceivedEventArgs) = printfn "Got an exception: %A" args.Exception Task.CompletedTask let processMessageAsync (message:Message) (_:CancellationToken) = try …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.