Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Fubu Upgrade
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ryan Kelley  
View profile  
 More options Feb 3, 11:52 am
From: Ryan Kelley <rpkel...@gmail.com>
Date: Fri, 3 Feb 2012 08:52:32 -0800 (PST)
Local: Fri, Feb 3 2012 11:52 am
Subject: Fubu Upgrade
So I am finally getting around to upgrading our Fubu Bits at Nine
Collective, I will likely have more issue that just this one, but
figured I would start here.

https://gist.github.com/1724029

We had/have VariableOutput Convention that would like at the
OutputType of an action and if it could be cast to IEnumerable it
would send the output as json when the request header was set
properly, otherwise would return the webform view.

I believe there was some functionality that took care of this built
into the framework back in the fall but I can not figure out how to
make it work properly. Any help would be much appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan Kelley  
View profile  
 More options Feb 6, 3:57 pm
From: Ryan Kelley <rpkel...@gmail.com>
Date: Mon, 6 Feb 2012 12:57:31 -0800 (PST)
Local: Mon, Feb 6 2012 3:57 pm
Subject: Re: Fubu Upgrade
Not to be "That Guy" but does anyone have any advice on this?

On Feb 3, 10:52 am, Ryan Kelley <rpkel...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy D. Miller  
View profile  
 More options Feb 6, 4:15 pm
From: "Jeremy D. Miller" <jeremydmil...@yahoo.com>
Date: Mon, 6 Feb 2012 13:15:38 -0800 (PST)
Local: Mon, Feb 6 2012 4:15 pm
Subject: Re: [fubumvc] Re: Fubu Upgrade

The build in conneg stuff will do that.

You just need to build a convention like so:

    // Need to register this as a policy so that it happens *after* the view
attachment
    public class RyanEnumerableJsonConvention : IConfigurationAction
    {
        public void Configure(BehaviorGraph graph)
        {
            graph.Behaviors
                .Where(x => x.ActionOutputType().CanBeCastTo<IEnumerable>())
                .Each(x => x.MakeAsymmetricJson());
        }
    }

 Jeremy D. Miller
The Shade Tree Developer
jeremydmil...@yahoo.com

________________________________
From: Ryan Kelley <rpkel...@gmail.com>
To: FubuMVC Development Group <fubumvc-devel@googlegroups.com>
Sent: Mon, February 6, 2012 2:57:31 PM
Subject: [fubumvc] Re: Fubu Upgrade

Not to be "That Guy" but does anyone have any advice on this?

On Feb 3, 10:52 am, Ryan Kelley <rpkel...@gmail.com> wrote:

> So I am finally getting around to upgrading our Fubu Bits at Nine
> Collective, I will likely have more issue that just this one, but
> figured I would start here.

> https://gist.github.com/1724029

> We had/have VariableOutput Convention that would like at the
> OutputType of an action and if it could be cast to IEnumerable it
> would send the output as json when the request header was set
> properly, otherwise would return the webform view.

> I believe there was some functionality that took care of this built
> into the framework back in the fall but I can not figure out how to
> make it work properly. Any help would be much appreciated.

--
You received this message because you are subscribed to the Google Groups
"FubuMVC Development Group" group.
To post to this group, send email to fubumvc-devel@googlegroups.com.
To unsubscribe from this group, send email to
fubumvc-devel+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/fubumvc-devel?hl=en.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »