To be clear, I'm not proposing that all code be generated at runtime,
only a thin IHttpModule wrapper. The rest of the code can remain
largely the same with a few calls changed as demonstrated in this
changeset:
http://github.com/patearl/Castle.Core/commit/654e268f27a3a110b34eca1e8047ab091c1929c6
Standard debugger functionality would be available for everything
except an intentionally small wrapper class that implements
IHttpModule.
Patrick Earl
On Fri, Sep 3, 2010 at 6:11 PM, Jonathon Rossi <[email protected]> wrote:
> By generating code at runtime for all web functionality we loose the
> strongly typed checking of the compiler and being able to step into this
> code with a debugger.
>
> On Fri, Sep 3, 2010 at 4:22 PM, Patrick Earl <[email protected]> wrote:
>>
>> Okay, I've dug a little deeper and now believe that the client profile
>> can be supported with just a single assembly and one breaking change.
>>
>> The breaking change would be that users would need to change this:
>>
>> <system.web>
>> <httpModules>
>> <add
>> name="ar.sessionscope"
>> type="Castle.ActiveRecord.Framework.SessionScopeWebModule,
>> Castle.ActiveRecord" />
>> </httpModules>
>> </system.web>
>>
>> Into this:
>>
>> public class Global : System.Web.HttpApplication
>> {
>> public override void Init()
>> {
>> base.Init();
>> SessionScopeWebModule.Init(this);
>> }
>> }
>>
>> Internally, the web module class would be generated at runtime through
>> IL emission. Is anyone aware of any showstoppers with this approach?
>> Is anyone aware of issues with medium trust, signing, or anything like
>> that?
>>
>> Does this technique appeal to people more than the last two?
>>
>> Patrick Earl
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Castle Project Development List" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/castle-project-devel?hl=en.
>>
>
>
>
> --
> Jono
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Development List" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/castle-project-devel?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-devel?hl=en.