aspnetcore/src/Microsoft.AspNetCore.Sockets/ConnectionMetadata.cs

25 lines
506 B
C#

using System.Collections.Generic;
namespace Microsoft.AspNetCore.Sockets
{
public class ConnectionMetadata
{
private IDictionary<string, object> _metadata = new Dictionary<string, object>();
public Format Format { get; set; } = Format.Text;
public object this[string key]
{
get
{
return _metadata[key];
}
set
{
_metadata[key] = value;
}
}
}
}