Questions tagged «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 let _ = Encoding.UTF8.GetString(message.Body) subscriptionClient.CompleteAsync(message.SystemProperties.LockToken) …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.