2013-08-16 29 views
2

我已經爲SignalR構建了一個定製的ScaleoutMessageBus子類,用於通過我的RabbitMQ總線傳遞消息。但是,我收到以下來自SignalR的例外情況:SignalR上的定製擴展總線導致異常

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. 
Parameter name: index 
    at System.SZArrayHelper.get_Item[T](Int32 index) 
    at Microsoft.AspNet.SignalR.Messaging.ScaleoutMessageBus.OnReceivedCore(Int32 streamIndex, UInt64 id, ScaleoutMessage scaleoutMessage) 
    at Microsoft.AspNet.SignalR.Messaging.ScaleoutStreamManager.OnReceived(Int32 streamIndex, UInt64 id, ScaleoutMessage message) 
    at System.Threading.Tasks.Task.Execute() 

什麼會導致此異常發生?

+0

我不能評論這個異常,但是有什麼理由不使用[SignalR.RabbitMQ](https://github.com/mdevilliers/SignalR.RabbitMq)庫嗎? –

+0

它需要服務器上的RabbitMQ插件,我無法安裝它。 –

+0

你有任何鏈接/博客文章到你的自定義擴大。它的目標是什麼等。我將談論如何在Windows Azure上擴展,並希望看到您已經完成了這些工作。 –

回答

0

事實證明,我需要重寫StreamCount以提供我正在使用的附加流數。