aspnetcore/src/Microsoft.AspNet.Http.Features/ISession.cs

25 lines
562 B
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
namespace Microsoft.AspNet.Http.Features
{
public interface ISession
{
void Load();
void Commit();
bool TryGetValue(string key, out byte[] value);
void Set(string key, ArraySegment<byte> value);
void Remove(string key);
void Clear();
IEnumerable<string> Keys { get; }
}
}