blob: 51dd8936a176c77e519191f5ecb5299e8a4127a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
using Marina.Infrastructure;
using Marina.Web.Http;
namespace Marina.Web.Handlers {
public class RequestHandlerSpecification : ISpecification< IHttpGateway > {
private readonly string _commandName;
public RequestHandlerSpecification( string commandName ) {
_commandName = commandName;
}
public bool IsSatisfiedBy( IHttpGateway item ) {
return item.Destination( ).Contains( _commandName );
}
}
}
|