Constants.cs 1.1 KB

1234567891011121314151617181920
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. //
  5. // NOTE: Identical copies of this file are kept in System.Reactive.Linq and System.Reactive.Providers.
  6. //
  7. namespace System.Reactive
  8. {
  9. // We can't make those based on the Strings_*.resx file, because the ObsoleteAttribute needs a compile-time constant.
  10. class Constants_Linq
  11. {
  12. #if PREFER_ASYNC
  13. public const string USE_ASYNC = "This blocking operation is no longer supported. Instead, use the async version in combination with C# and Visual Basic async/await support. In case you need a blocking operation, use Wait or convert the resulting observable sequence to a Task object and block.";
  14. public const string USE_TASK_FROMASYNCPATTERN = "This conversion is no longer supported. Replace use of the Begin/End asynchronous method pair with a new Task-based async method, and convert the result using ToObservable. If no Task-based async method is available, use Task.Factory.FromAsync to obtain a Task object.";
  15. #endif
  16. }
  17. }