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.
35 lines
787 B
35 lines
787 B
using System; |
|
|
|
using BestHTTP.Logger; |
|
|
|
namespace BestHTTP.Core |
|
{ |
|
public struct HostConnectionKey |
|
{ |
|
public readonly string Host; |
|
public readonly string Connection; |
|
|
|
public HostConnectionKey(string host, string connection) |
|
{ |
|
this.Host = host; |
|
this.Connection = connection; |
|
} |
|
|
|
public override string ToString() |
|
{ |
|
return string.Format("[HostConnectionKey Host: '{0}', Connection: '{1}']", this.Host, this.Connection); |
|
} |
|
} |
|
|
|
public interface IProtocol : IDisposable |
|
{ |
|
HostConnectionKey ConnectionKey { get; } |
|
|
|
bool IsClosed { get; } |
|
LoggingContext LoggingContext { get; } |
|
|
|
void HandleEvents(); |
|
|
|
void CancellationRequested(); |
|
} |
|
}
|
|
|