C# Rx:限制Xamarin.Droid项目中的订阅抛出缺少的字段';忽略';来自被动.Stubs的异常

C# Rx:限制Xamarin.Droid项目中的订阅抛出缺少的字段';忽略';来自被动.Stubs的异常,c#,xamarin,system.reactive,C#,Xamarin,System.reactive,我一直在研究这个Rx问题好几天了,一直在画一个空白,所以希望这可能会有人响。相同的订阅在未限制时可以正常工作,但一旦添加限制(如下所示),就会引发异常。完全可复制。你知道为什么找不到“忽略”这个词吗 _locationManager.LocationChanged.Throttle (TimeSpan.FromSeconds (10)).Subscribe (LocationHandle); {System.MissingFieldException: Field 'System.Reacti

我一直在研究这个Rx问题好几天了,一直在画一个空白,所以希望这可能会有人响。相同的订阅在未限制时可以正常工作,但一旦添加限制(如下所示),就会引发异常。完全可复制。你知道为什么找不到“忽略”这个词吗

_locationManager.LocationChanged.Throttle (TimeSpan.FromSeconds (10)).Subscribe (LocationHandle);

{System.MissingFieldException: Field 'System.Reactive.Stubs`1[System.Object].Ignore' not found.
  at System.Reactive.Disposables.CompositeDisposable.Dispose () [0x00000] in <filename unknown>:0 
  at System.Reactive.Disposables.SingleAssignmentDisposable.Dispose () [0x00000] in <filename unknown>:0 
  at System.Reactive.Disposables.SerialDisposable.set_Disposable (IDisposable value) [0x00000] in <filename unknown>:0 
  at System.Reactive.Linq.Observαble.Throttle`1+_[Android.Locations.Location].OnNext (Android.Locations.Location value) [0x00000] in <filename unknown>:0 
  at System.Reactive.Subjects.Subject`1[Android.Locations.Location].OnNext (Android.Locations.Location value) [0x00000] in <filename unknown>:0 
  at rdf.LocationManager.RegisterNewLocation (Android.Locations.Location location) [0x00009] in /Users/xxx/rdf/Rdf/Location/RdfLocationManager.cs:61 }
    Static members: 
    Non-public members: 
    Data: Count=0
    HResult: -2146233071
    HelpLink: (null)
    InnerException: (null)
    Message (System.Exception): "Cannot access a class member."
    Message (System.MissingMemberException): "Member System.Reactive.Stubs`1[System.Object].Ignore not found."
    Message (System.MissingFieldException): "Field 'System.Reactive.Stubs`1[System.Object].Ignore' not found."
    Source: "System.Reactive.Core"
    StackTrace: "  at System.Reactive.Disposables.CompositeDisposable.Dispose () [0x00000] in <filename unknown>:0 \n  at System.Reactive.Disposables.SingleAssignmentDisposable.Dispose () [0x00000] in <filename unknown>:0 \n  at System.Reactive.Disposables.SerialDisposable.set_Disposable (IDisposable value) [0x00000] in <filename unknown>:0 \n  at System.Reactive.Linq.Observαble.Throttle`1+_[Android.Locations.Location].OnNext (Android.Locations.Location value) [0x00000] in <filename unknown>:0 \n  at System.Reactive.Subjects.Subject`1[Android.Locations.Location].OnNext (Android.Locations.Location value) [0x00000] in <filename unknown>:0
\u locationManager.LocationChanged.Throttle(TimeSpan.FromSeconds(10)).Subscribe(LocationHandle);
{System.MissingFieldException:Field'System.Reactive.Stubs'1[System.Object].Ignore'未找到。
位于:0中的System.Reactive.Disposables.CompositeDisposable.Dispose()[0x00000]处
位于System.Reactive.Disposables.SingleAssignmentDispose.Dispose()[0x00000]中:0
在System.Reactive.Disposables.SerialDisposable.set_Disposable(IDisposable值)[0x00000]中:0
在System.Reactive.Linq.Observαble.Throttle`1+0;[Android.Locations.Location].OnNext(Android.Locations.Location值)[0x00000]中:0
位于System.Reactive.Subjects.Subject`1[Android.Locations.Location].OnNext(Android.Locations.Location值)[0x00000]中:0
在/Users/xxx/rdf/rdf/Location/RdfLocationManager.cs:61中的rdf.LocationManager.RegisterNewLocation(Android.Locations.Location)[0x00009]
静态成员:
非公职人员:
数据:计数=0
HResult:-2146233071
帮助链接:(空)
InnerException:(空)
消息(System.Exception):“无法访问类成员。”
消息(System.MissingMemberException):“成员System.Reactive.Stubs`1[System.Object]。找不到忽略。”
消息(System.MissingFieldException):“字段”System.Responsive.Stubs`1[System.Object]。找不到“忽略”
资料来源:“系统。反应。核心”
StackTrace:“在System.Reactive.Disposables.CompositeDisposable.Dispose()[0x00000]in:0\n在System.Reactive.Disposables.singleassignmentdispose()[0x00000]in:0\n在System.Reactive.Disposables.SerialDisposable.set_Disposable(IDisposable value)[0x00000 in:0\n在System.Reactive.Linq.observeαble.Throttle`1+_[Android.Locations.Location].OnNext(Android.Locations.Location值)[0x00000]in:0\n在System.Reactive.Subjects.Subject`1[Android.Locations.Location].OnNext(Android.Locations.Location值)[0x00000]in:0

结果是可观察的。Throttle()不是我要找的方法。Throttle()在经过的时间结束之前忽略后续消息。这与可观察的有细微的不同。Sample()的作用与我要找的完全相同,它可以将快速序列采样为慢速序列。使用Throttle()的效果我这样做的方式是,我的序列从未开始过。

请您编辑您的问题,并提供一个产生此问题的小而完整的示例?您使用的是什么版本的Rx?从名称
Observαble
(找出希腊字母,异常跟踪的第5行),很旧了。从那以后,希腊字母就再也没有出现在Rx中了