diff options
Diffstat (limited to 'slips/src/app/Marina/Web/Handlers/RequestHandlerSpecification.cs')
| -rw-r--r-- | slips/src/app/Marina/Web/Handlers/RequestHandlerSpecification.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/slips/src/app/Marina/Web/Handlers/RequestHandlerSpecification.cs b/slips/src/app/Marina/Web/Handlers/RequestHandlerSpecification.cs new file mode 100644 index 0000000..51dd893 --- /dev/null +++ b/slips/src/app/Marina/Web/Handlers/RequestHandlerSpecification.cs @@ -0,0 +1,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 );
+ }
+ }
+}
\ No newline at end of file |
