1
0

WebSocketBehaviorBase.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.IO;
  3. using WebSocketSharp.Server;
  4. namespace NTMiner {
  5. public class WebSocketBehaviorBase : WebSocketBehavior {
  6. public new void Error(string message, Exception exception) {
  7. base.Error(message, exception);
  8. }
  9. public new void Send(string data) {
  10. base.Send(data);
  11. }
  12. public new void Send(FileInfo file) {
  13. base.Send(file);
  14. }
  15. public new void Send(byte[] data) {
  16. base.Send(data);
  17. }
  18. public new void SendAsync(FileInfo file, Action<bool> completed) {
  19. base.SendAsync(file, completed);
  20. }
  21. public new void SendAsync(Stream stream, int length, Action<bool> completed) {
  22. base.SendAsync(stream, length, completed);
  23. }
  24. public new void SendAsync(byte[] data, Action<bool> completed) {
  25. base.SendAsync(data, completed);
  26. }
  27. public new void SendAsync(string data, Action<bool> completed) {
  28. base.SendAsync(data, completed);
  29. }
  30. }
  31. }