|
using System;
using JetBrains.Annotations;
namespace Kaleida.ServiceMonitor.Model.StructuredSource
{
public class OperationDefinition
{
private readonly ActionDefinition requestAction;
private readonly ActionDefinition handlerAction;
public OperationDefinition([NotNull] ActionDefinition requestAction, [NotNull] ActionDefinition handlerAction)
{
if (requestAction == null) throw new ArgumentNullException("requestAction");
if (handlerAction == null) throw new ArgumentNullException("handlerAction");
this.requestAction = requestAction;
this.handlerAction = handlerAction;
}
[NotNull]
public ActionDefinition RequestAction
{
get { return requestAction; }
}
[NotNull]
public ActionDefinition HandlerAction
{
get { return handlerAction; }
}
public override string ToString()
{
return string.Format("Request: {0}\r\nResponse Handler: {1}\r\n", requestAction, handlerAction);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Stuart Wheelwright is the Principal Architect and Software Developer at
BlackJet Software Ltd.
He has over 16 years commercial experience producing robust, maintainable, web-based solutions and bespoke systems for Microsoft platforms.
His latest project is
Shopping UK, an elegantly simple shopping list for iPhone.