I am in the process of evaluating several service frameworks and one of them is OpenRasta.
Despite being taken a bit aback for the lack of organization (multiple source code repositories, lack of binary downloads, outdated build instructions and the…
Suppose I register some instance in OpenRasta's dependency resolver using
resolver.AddDependencyInstance(IInterface, instance, DependencyLifetime.Singleton)
Now if I want to swap that instance later, say to reread fresh data from the db, is another…
I want to render a pdf in Iframe. So if I do a GET request to http://localhost/pdf/2, it should return PDF content in the response stream. The other way can be redirecting user to full URL of the PDF file which I don't want to do.
Thanks in advance
according to the answer to this question: In OpenRasta, how do I configure a URI where I get "the remainder of the path" as a single string?
Openrasta should support wildcards in it's uri mapping, is this already supported in version…
What is the preferred way to remove a default pipeline contributor (OpenRasta 2.0.3)?
I haven't found a lot on that on the net, but one way seems to be writing a custom DependencyRegistrar, i.e. deriving from DefaultDependencyRegistrar and then e.g.…
I'm new to both OpenWrap and OpenRasta. Not really that interested in Openwrap other than that seems to be the way to get OpenRasta. Anyways i've installed openwrap and followed the following tutorial to the T:
OpenWrap Tutorial
except of course i…
We are trying to be forward looking in our architecture choice on some of the new systems we are designing. Pretty much we want to architecture back end system that no matter what interface we decide to use (WinForms, Silverlight, MVC, Webforms,…
When registering two handlers for the same type, but with different URIs, the handler selection algorithm doesn't seem to check the uri when it determines which handler to use.
If you run the program below, you'll notice that only HandlerOne will be…
I created a couple of custom attributes that I attach to my methods in the handlers. The custom attributes are more than mere 'taggers' like e.g. 'RequiresAuthenticationAttribute'. A simplified example:
[EnforceParam("Account")]
In my interceptor,…
I have a design of a person having a collection of subjects like
Person ---> Subject (1 to many)
If I access a person with an Id of 1 (http://localhost/person/1),
it will show all the person's details and the collection details.
How do I design a…
I am using OpenRasta 2.0, and am hosting within a console application.
I would like to be able to return some static HTML pages and JavaScript files from this setup, for example:
/index.html
/jquery.js
The files are entirely static, i.e. no…
I'm trying to write an integration test for an open rasta web service (code bellow)
using(var host = new InMemoryHost(new Configuration()))
{
var request = new InMemoryRequest {Uri = new Uri("http://localhost/foo"), HttpMethod = "GET"};
…
I know I'm missing something stupid.
I followed the instructions in wiki and I got few zip files in bin\Release\vside folder, which I'm sure are visual studio templates. But I don't know how to install them to be available in Visual Studio new…
Is it possible to return nested classes in json with OpenRasta?
I'm using EF4.1 with code first (which in theory shouldn't make a difference, as they are just POCO classes).
Here is an example:
public class AppUser
{
[Key]
public int…