You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConnectionContextMockup.cs 637 B

6 years ago
12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using System.IO.Pipelines;
  3. using Microsoft.AspNetCore.Connections;
  4. using Microsoft.AspNetCore.Http.Features;
  5. namespace MQTTnet.AspNetCore.Tests.Mockups
  6. {
  7. public class ConnectionContextMockup : ConnectionContext
  8. {
  9. public override string ConnectionId { get; set; }
  10. public override IFeatureCollection Features { get; }
  11. public override IDictionary<object, object> Items { get; set; }
  12. public override IDuplexPipe Transport { get; set; }
  13. public ConnectionContextMockup()
  14. {
  15. //Transport = new DefaultConnectionContext
  16. }
  17. }
  18. }