Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (38 sloc) 1.16 KB
using System;
using System.ComponentModel;
namespace Wut
{
public interface IGrammar
{
[EditorBrowsable(EditorBrowsableState.Never)]
string ToString();
[EditorBrowsable(EditorBrowsableState.Never)]
Type GetType();
[EditorBrowsable(EditorBrowsableState.Never)]
bool Equals(object other);
[EditorBrowsable(EditorBrowsableState.Never)]
int GetHashCode();
}
public interface IListeningScenario : IAuthenticateExpression, IRespondExpression
{
}
public interface IAuthenticateExpression : IGrammar
{
IRespondExpression Authenticate(Action<IAuthenticationScenario> auth);
}
public interface IAuthenticationScenario : IGrammar
{
void Basic();
}
public interface IRespondExpression : IGrammar
{
IAuthenticateExpression Respond(Action<IRespondingScenario> response);
}
public interface IRespondingScenario : IGrammar
{
void Default();
void Body(string body);
void ContentType(string contentType);
void Json(string json);
}
}
Something went wrong with that request. Please try again.