What is the best way to do this?
I was thinking about something like:
public void Initialize(IPipeline pipelineRunner)
{
pipelineRunner
.Notify(CaptureRequestStartTime)
.Before();
…
Currently i am writing a unit tests for my handler methods using NUnit.I have used HttpContext.Current in one of my Controller Methods which throws NULL reference exception at HttpContext.Current when i execute test cases for my handler.
Is there…
How do I use StructureMap with OpenRasta? Can I use it in place of the internal dependency resolver, or is it only possible to use it in conjunction with the built-in DI (i.e. for my own app's dependencies)?
Thanks
What is the proper way to version media types in openrasta? Up to this point on one of our rest api's we specified custom media types with the version number in them:
application/vnd.company.Entity-v1+xml
Currently all of these media types are just…
I'm logging errors by specifically signalling errors
ErrorSignal.FromCurrentContext().Raise(exception);
How do I add request body and headers in the errors details. I'm just using the email feature.
I notice OpenRasta.Core has an HtmlErrorCodec which is responsible for rendering a the server error page sent out when a handler throws an Exception.
When I make an JSON Ajax request to an exception throwing handler this Codec is selected and the…
Hi I´m building an application that has a token based authentication ex:
http://www.host.com/resource?token=589437534
I was going write an interceptor or something like that, but I imagine that there is something more elegant available that I just…
we are trying to build a more loosely coupled composite based web application, and looking at various options and frameworks.
The idea is like when the user browse to a page, the uri will be resolved on the server for a resource and a list of…
REST API Questions:
Does anyone know any good tutorial that shows how to do form based authentication with OpenRasta?
How difficult would it be to convert REST API from MVC to OpenRasta in future?
I know OpenRasta has advantages over MVC.
How…
When using codec uri file extensions with OpenRasta, OR can't resolve the uri and returns a 404. Without the file extension all works ok.
The codecs are defined for the object resource and I'm using both XmlDataContract and JsonDataContract. Using…
Is it possible to upload a file, and post meta data (in the post body) at the same time in OpenRasta? and if so, do you have an example of how to do this?
I'm testing out the feasibility of using OpenRasta as a viable alternative to ASP.NET MVC.
However, I've run into a stumbling block regarding authentication.
Let me be clear, "Open Digest Authentication" is NOT an option at this point.
I've read…
Suppose I have a resource like below:
namespace OpenRastaApp.Resources
{
public class Foo
{
public string Bar { get; set; }
}
}
a handler like:
namespace OpenRastaApp.Handlers
{
public class FooHandler
{
public…
Normally in OpenRasta there is some configuration like this:
ResourceSpace.Has.ResourcesOfType()
.AtUri("/customers/region/{region}")
... // and so on
... where the {region} part of the path is automatically mapped to a string…
I have a very simple OpenRasta app with a Home resource with a single string property of Title (straight from the OpenRasta community doc example).
I've set up both XML and JSON data contracts for the resource like…