Reputation: 3257
In ServiceStack is there an implementation of HttpError?
I can find the interface definition:
namespace ServiceStack.ServiceHost
{
public interface IHttpError : IHttpResult, IHasOptions
{
string ErrorCode { get; }
string Message { get; }
}
}
But am I missing a using directive, because I get this compiler error:
The type or namespace name 'HttpError' could not be found (are you missing a using directive or an assembly reference?)
Upvotes: 1
Views: 837
Reputation: 3257
I just found out how to search namespaces, in VS2012 anyway... Select the class and type Shift-Alt-F10... this causes a little dropdown box to appear... click on it and you will see the namespaces that have matching class names!
Upvotes: 0
Reputation: 12015
The HttpError
class is in the ServiceStack.Common.Web
namespace (ServiceStack.Common assembly/NuGet package) in the current (version 3) release of ServiceStack.
In under-development version 4, looks like it was moved to the root ServiceStack
namespace.
Upvotes: 3