springnet-commits Mailing List for Spring Framework .NET (Page 55)
Brought to you by:
aseovic,
markpollack
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(33) |
Aug
(163) |
Sep
(491) |
Oct
(289) |
Nov
(336) |
Dec
(84) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(227) |
Feb
(413) |
Mar
(128) |
Apr
(232) |
May
(92) |
Jun
(299) |
Jul
(386) |
Aug
(228) |
Sep
(237) |
Oct
(426) |
Nov
(325) |
Dec
(405) |
2006 |
Jan
(315) |
Feb
(311) |
Mar
(152) |
Apr
(177) |
May
(443) |
Jun
(92) |
Jul
(88) |
Aug
(80) |
Sep
(288) |
Oct
(515) |
Nov
(1049) |
Dec
(440) |
2007 |
Jan
(179) |
Feb
(406) |
Mar
(294) |
Apr
(80) |
May
(432) |
Jun
(242) |
Jul
(452) |
Aug
(710) |
Sep
(206) |
Oct
(240) |
Nov
(65) |
Dec
(227) |
2008 |
Jan
(80) |
Feb
(90) |
Mar
(98) |
Apr
(136) |
May
(101) |
Jun
(12) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Erich E. <oak...@us...> - 2007-08-23 10:37:57
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/Lists In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12346/Lists Modified Files: Default.aspx Log Message: improved WebQuickStart examples fixed SPRNET-344 fixed SPRNET-696 fixed SPRNET-706 Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/Lists/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 19 May 2007 00:23:37 -0000 1.1 --- Default.aspx 23 Aug 2007 10:37:53 -0000 1.2 *************** *** 6,14 **** <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> ! <title>Data Binding - Multiselection Lists Example</title> </head> <body> <form id="form1" runat="server"> <div> <p> Life is not 1-dimensional ;-). This sample demonstrates binding of multiple selection lists. --- 6,17 ---- <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> ! <title>Data Binding - Multi-Selection Lists Example</title> </head> <body> + <h2><a href="../../Default.aspx">Welcome to Spring.NET Web Framework Quick Start Guide</a></h2> + <h2><a href="../Default.aspx">Bi-directional DataBinding</a></h2> <form id="form1" runat="server"> <div> + <h2>Multi-Selection Lists example</h2> <p> Life is not 1-dimensional ;-). This sample demonstrates binding of multiple selection lists. |
From: Erich E. <oak...@us...> - 2007-08-23 10:37:57
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/HelloWorld In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12346/HelloWorld Modified Files: Default.aspx Log Message: improved WebQuickStart examples fixed SPRNET-344 fixed SPRNET-696 fixed SPRNET-706 Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/HelloWorld/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 4 Dec 2006 00:08:36 -0000 1.1 --- Default.aspx 23 Aug 2007 10:37:53 -0000 1.2 *************** *** 8,13 **** --- 8,16 ---- </head> <body> + <h2><a href="../../Default.aspx">Welcome to Spring.NET Web Framework Quick Start Guide</a></h2> + <h2><a href="../Default.aspx">Bi-directional DataBinding</a></h2> <form id="form1" runat="server"> <div> + <h2>Hello World example</h2> <p> This very simple web form demonstrates basic bi-directional data binding. |
From: Erich E. <oak...@us...> - 2007-08-23 10:37:56
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/EventHandling In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12346/EventHandling Modified Files: Default.aspx Log Message: improved WebQuickStart examples fixed SPRNET-344 fixed SPRNET-696 fixed SPRNET-706 Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/EventHandling/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 4 Dec 2006 00:08:36 -0000 1.1 --- Default.aspx 23 Aug 2007 10:37:53 -0000 1.2 *************** *** 8,13 **** --- 8,16 ---- </head> <body> + <h2><a href="../../Default.aspx">Welcome to Spring.NET Web Framework Quick Start Guide</a></h2> + <h2><a href="../Default.aspx">Bi-directional DataBinding</a></h2> <form id="form1" runat="server"> <div> + <h2>Event Handling example</h2> <p> This example builds on the previous one by adding postback event handler |
From: Erich E. <oak...@us...> - 2007-08-23 10:37:56
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/Collections In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12346/Collections Modified Files: Default.aspx Default.aspx.cs Log Message: improved WebQuickStart examples fixed SPRNET-344 fixed SPRNET-696 fixed SPRNET-706 Index: Default.aspx.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/Collections/Default.aspx.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx.cs 4 Dec 2006 00:08:36 -0000 1.1 --- Default.aspx.cs 23 Aug 2007 10:37:53 -0000 1.2 *************** *** 13,18 **** private IList products; ! private IntegerFormatter quantityFormatter = new IntegerFormatter(); ! private CurrencyFormatter priceFormatter = new CurrencyFormatter(); #endregion --- 13,18 ---- private IList products; ! private readonly IntegerFormatter quantityFormatter = new IntegerFormatter(); ! private readonly CurrencyFormatter priceFormatter = new CurrencyFormatter(); #endregion *************** *** 44,47 **** --- 44,48 ---- protected override void InitializeDataBindings() { + // HttpRequestListBindingContainer unbinds specified values from Request -> Productlist HttpRequestListBindingContainer requestBindings = new HttpRequestListBindingContainer("sku,name,quantity,price", "Products", typeof(ProductInfo)); Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/Collections/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 4 Dec 2006 00:08:36 -0000 1.1 --- Default.aspx 23 Aug 2007 10:37:53 -0000 1.2 *************** *** 5,11 **** <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> ! <title>Data Binding - Hello World example</title> <script> ! function dodaj() { var src = document.getElementById('itemTemplate'); var dst = document.getElementById('products'); --- 5,11 ---- <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> ! <title>Data Binding - HttpRequestListBindingContainer example</title> <script> ! function addRow() { var src = document.getElementById('itemTemplate'); var dst = document.getElementById('products'); *************** *** 15,54 **** </head> <body> <form id="form1" runat="server"> <div> <p> ! This very simple web form demonstrates basic bi-directional data binding. ! </p> ! <p> ! Once you enter your name into the text box and submit the form (by hitting Enter), ! Spring.NET will evaluate data binding rules configured in the code-behind file and ! set the Name property of the page to the value of txtName.Text property. </p> <p> ! After that, page will be rendered again and Name property will be bound both ! to the text box, so you can change the value, and to the label below the text ! box, in order to show you how you can use one-way bindings to set non-writable ! properties. </p> Edit List: <br /> <div id="products"> <% foreach (ProductInfo p in Products) { %> ! <div> ! <input name="sku" type="text" value="<%= p.Sku %>" style="width: 50px;" /> ! <input name="name" type="text" value="<%= p.Name %>" style="width: 150px;" /> ! <input name="quantity" type="text" value="<%= QuantityFormatter.Format(p.Quantity) %>" style="width: 30px;" /> ! <input name="price" type="text" value="<%= PriceFormatter.Format(p.Price) %>" style="width: 50px;" /> ! <br /> ! </div> <% } %> </div> <asp:Button ID="btnAdd" Text="Add" runat="server" OnClick="btnAdd_Click" /> <asp:Button ID="btnSave" Text="Save" runat="server" OnClick="btnSave_Click" /> ! <button onclick="dodaj();">Dodaj</button> </div> </form> --- 15,60 ---- </head> <body> + <h2><a href="../../Default.aspx">Welcome to Spring.NET Web Framework Quick Start Guide</a></h2> + <h2><a href="../Default.aspx">Bi-directional DataBinding</a></h2> <form id="form1" runat="server"> <div> + <h2>HttpRequestListBindingContainer example</h2> <p> ! This form demonstrates unbinding data from HttpRequest.Form collection into a list model using HttpRequestListBindingContainer. </p> <p> ! HttpRequestListBindingContainer extracts posted values from the request and populates the specified IList by creating objects ! of the type specified and populating each of these objects according to the requestBindings collection. </p> + <pre> + HttpRequestListBindingContainer requestBindings = + new HttpRequestListBindingContainer("sku,name,quantity,price", "Products", typeof(ProductInfo)); + requestBindings.AddBinding("sku", "Sku"); + requestBindings.AddBinding("name", "Name"); + requestBindings.AddBinding("quantity", "Quantity", quantityFormatter); + requestBindings.AddBinding("price", "Price", priceFormatter); + </pre> Edit List: <br /> <div id="products"> + <table> + <tr><td>Firstname</td><td>Lastname</td><td>Quantity</td><td>Price/Item</td></tr> <% foreach (ProductInfo p in Products) { %> ! <tr> ! <td><input name="sku" type="text" value="<%= p.Sku %>" style="width: 50px;" /></td> ! <td><input name="name" type="text" value="<%= p.Name %>" style="width: 150px;" /></td> ! <td><input name="quantity" type="text" value="<%= QuantityFormatter.Format(p.Quantity) %>" style="width: 30px;" /></td> ! <td><input name="price" type="text" value="<%= PriceFormatter.Format(p.Price) %>" style="width: 50px;" /></td> ! </tr> <% } %> + </table> </div> <asp:Button ID="btnAdd" Text="Add" runat="server" OnClick="btnAdd_Click" /> <asp:Button ID="btnSave" Text="Save" runat="server" OnClick="btnSave_Click" /> ! <button onclick="addRow();">Add row using javascript</button> </div> </form> *************** *** 57,61 **** <input name="name" type="text" value="" style="width: 150px;" /> <input name="quantity" type="text" value="0" style="width: 30px;" /> ! <input name="price" type="text" value="$0.00" style="width: 50px;" /> <br /> </div> --- 63,67 ---- <input name="name" type="text" value="" style="width: 150px;" /> <input name="quantity" type="text" value="0" style="width: 30px;" /> ! <input name="price" type="text" value="<%= PriceFormatter.Format(0) %>" style="width: 50px;" /> <br /> </div> |
From: Erich E. <oak...@us...> - 2007-08-23 10:37:56
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/EmployeeInfo In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12346/EmployeeInfo Modified Files: Default.aspx Log Message: improved WebQuickStart examples fixed SPRNET-344 fixed SPRNET-696 fixed SPRNET-706 Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/EmployeeInfo/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 4 Dec 2006 00:08:36 -0000 1.1 --- Default.aspx 23 Aug 2007 10:37:53 -0000 1.2 *************** *** 9,14 **** --- 9,17 ---- </head> <body> + <h2><a href="../../Default.aspx">Welcome to Spring.NET Web Framework Quick Start Guide</a></h2> + <h2><a href="../Default.aspx">Bi-directional DataBinding</a></h2> <form id="form1" runat="server"> <div> + <h2>Employee Info example</h2> <p> Now we are getting into more interesting stuff :-). |
From: Erich E. <oak...@us...> - 2007-08-23 10:37:42
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DI In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12311/DI Added Files: Default.aspx Default.aspx.cs Log Message: improved WebQuickStart examples fixed SPRNET-344 fixed SPRNET-696 fixed SPRNET-706 --- NEW FILE: Default.aspx.cs --- using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class DI_Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } --- NEW FILE: Default.aspx --- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="DI_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Spring.NET Web Framework Quick Start Guide - Dependency Injection</title> </head> <body> <h2><a href="../Default.aspx">Welcome to Spring.NET Web Framework Quick Start Guide</a></h2> <div> <h2>Dependency Injection</h2> <p> Samples in this section demonstrate, how dependency injection is done in web projects. </p> <h3><a href="HelloWorld/Default.aspx">Hello World!</a></h3> <p>The inevitable "Hello World!" example demonstrates DI for pages, usercontrols and webcontrols</p> <h3><a href="NestedContexts/Default.aspx">Nested Contexts</a></h3> <p>This sample shows, how contexts are nested in webapplications</p> </div> </body> </html> |
From: Erich E. <oak...@us...> - 2007-08-23 10:37:42
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12311 Modified Files: Default.aspx Log Message: improved WebQuickStart examples fixed SPRNET-344 fixed SPRNET-696 fixed SPRNET-706 Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 4 Dec 2006 00:08:35 -0000 1.1 --- Default.aspx 23 Aug 2007 10:37:38 -0000 1.2 *************** *** 37,41 **** to everyone who prefers to learn by example. </p> ! <h3>Dependency Injection</h3> <p> Samples in this category show you how to inject dependencies into your web pages --- 37,41 ---- to everyone who prefers to learn by example. </p> ! <h3><a href="DI/Default.aspx">Dependency Injection</a></h3> <p> Samples in this category show you how to inject dependencies into your web pages *************** *** 45,49 **** your application into components using hierarchical web contexts. </p> ! <h3>Bi-directional Data Binding</h3> <p> By studying samples in this category, you will learn how to declaratively define --- 45,49 ---- your application into components using hierarchical web contexts. </p> ! <h3><a href="DataBinding/Default.aspx">Bi-directional Data Binding</a></h3> <p> By studying samples in this category, you will learn how to declaratively define |
From: Erich E. <oak...@us...> - 2007-08-23 10:37:42
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DI/NestedContexts In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12311/DI/NestedContexts Modified Files: Default.aspx Web.config Log Message: improved WebQuickStart examples fixed SPRNET-344 fixed SPRNET-696 fixed SPRNET-706 Index: Web.config =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DI/NestedContexts/Web.config,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Web.config 27 Mar 2007 11:31:40 -0000 1.1 --- Web.config 23 Aug 2007 10:37:37 -0000 1.2 *************** *** 1,10 **** <?xml version="1.0"?> <configuration> - <configSections> - <sectionGroup name="spring"> - <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/> - <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/> - </sectionGroup> - </configSections> <spring> <context> --- 1,4 ---- Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DI/NestedContexts/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 27 Mar 2007 11:31:39 -0000 1.1 --- Default.aspx 23 Aug 2007 10:37:37 -0000 1.2 *************** *** 7,13 **** <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> ! <title>Context nesting</title> </head> <body> <form id="form1" runat="server"> <p> --- 7,17 ---- <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> ! <title>Dependency Injection - Nested Contexts example</title> </head> <body> + <h2><a href="../../Default.aspx">Welcome to Spring.NET Web Framework Quick Start Guide</a></h2> + <h2><a href="../Default.aspx">Dependency Injection</a></h2> + <div> + <h2>Nested Contexts example</h2> <form id="form1" runat="server"> <p> *************** *** 28,31 **** --- 32,36 ---- </p> </form> + </div> </body> </html> |
From: Erich E. <oak...@us...> - 2007-08-23 10:37:41
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DI/HelloWorld In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12311/DI/HelloWorld Modified Files: Default.aspx Web.config Log Message: improved WebQuickStart examples fixed SPRNET-344 fixed SPRNET-696 fixed SPRNET-706 Index: Web.config =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DI/HelloWorld/Web.config,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Web.config 26 Mar 2007 18:20:27 -0000 1.2 --- Web.config 23 Aug 2007 10:37:37 -0000 1.3 *************** *** 1,10 **** <?xml version="1.0"?> <configuration> - <configSections> - <sectionGroup name="spring"> - <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/> - <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/> - </sectionGroup> - </configSections> <spring> <context> --- 1,4 ---- *************** *** 15,19 **** <!-- use the filename of your Page for the 'type' attribute to configure DI for a Page --> <object type="Default.aspx"> ! <property name="Title" value="DI - Hello World Sample"/> <property name="Message"> <value>This very simple page demonstrates how to inject dependencies into a Page.</value> --- 9,13 ---- <!-- use the filename of your Page for the 'type' attribute to configure DI for a Page --> <object type="Default.aspx"> ! <property name="Title" value="Dependency Injection - Hello World Sample"/> <property name="Message"> <value>This very simple page demonstrates how to inject dependencies into a Page.</value> Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DI/HelloWorld/Default.aspx,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Default.aspx 27 Mar 2007 11:31:38 -0000 1.2 --- Default.aspx 23 Aug 2007 10:37:37 -0000 1.3 *************** *** 8,13 **** </head> <body> <form id="form1" runat="server"> - <p> This very simple web form demonstrates dependency injection on pages and controls. --- 8,16 ---- </head> <body> + <h2><a href="../../Default.aspx">Welcome to Spring.NET Web Framework Quick Start Guide</a></h2> + <h2><a href="../Default.aspx">Dependency Injection</a></h2> + <div> + <h2>Hello World example</h2> <form id="form1" runat="server"> <p> This very simple web form demonstrates dependency injection on pages and controls. *************** *** 23,26 **** --- 26,30 ---- </p> </form> + </div> </body> </html> |
From: Erich E. <oak...@us...> - 2007-08-23 08:27:13
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv26957/Support Modified Files: PageHandlerFactory.cs Log Message: fixed SPRNET-704 fixed SPRNET-705 Index: PageHandlerFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Support/PageHandlerFactory.cs,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** PageHandlerFactory.cs 3 Aug 2007 08:31:24 -0000 1.32 --- PageHandlerFactory.cs 23 Aug 2007 08:27:08 -0000 1.33 *************** *** 193,203 **** internal class PageHandler : System.Web.UI.Page, IHttpHandler { ! private IApplicationContext appContext; ! private string pageId; ! private string url; ! private string path; ! private IHttpHandler cachedHandler; // cache handler if IsReusable == true ! private IDictionary handlerState = new SynchronizedHashtable(); /// <summary> --- 193,210 ---- internal class PageHandler : System.Web.UI.Page, IHttpHandler { ! private readonly IApplicationContext appContext; ! private readonly string pageId; ! private readonly string url; ! private readonly string path; ! // cache handler if IsReusable == true ! // since we don't use sync, make it volatile ! private volatile IHttpHandler cachedHandler; ! ! // holds shared state for handlerType ! private Type handlerType; ! private IDictionary handlerState; ! ! private readonly object syncRoot = new object(); /// <summary> *************** *** 226,229 **** --- 233,244 ---- } + /// <summary> + /// Use for sync access to this PageHandler instance. + /// </summary> + public object SyncRoot + { + get { return syncRoot; } + } + #region IHttpHandler Members *************** *** 235,274 **** { IHttpHandler handler = cachedHandler; if (handler == null) { if (path != null) { ! handler = WebObjectUtils.CreatePageInstance(url); ! if (handler is IApplicationContextAware) ! { ! ((IApplicationContextAware) handler).ApplicationContext = appContext; ! } } else { ! string processId = context.Request[AbstractProcessHandler.ProcessIdParamName]; ! if (processId != null) ! { ! handler = (IHttpHandler) ProcessManager.GetProcess(processId); ! } ! ! if (handler == null) ! { ! handler = (IHttpHandler) this.appContext.GetObject(this.pageId); ! if (handler is IProcess) ! { ! ((IProcess) handler).Start(url); ! } ! } } if (handler.IsReusable) cachedHandler = handler; } ! if (handler is ISharedStateAware) { ! ((ISharedStateAware) handler).SharedState = this.handlerState; } if (handler is Control) { --- 250,319 ---- { IHttpHandler handler = cachedHandler; + if (handler == null) { if (path != null) { ! handler = CreatePageInstance(); } else { ! handler = GetOrCreateProcessHandler(context); } + // note, that we don't care about sync here. The last call wins (it's the most current handler instance anyway) if (handler.IsReusable) cachedHandler = handler; } ! ApplySharedState(handler); ! ApplyDependencyInjection(handler); ! ! context.Handler = handler; ! handler.ProcessRequest(context); ! } ! ! /// <summary> ! /// Creates a page instance corresponding to this handler's url. ! /// </summary> ! private IHttpHandler CreatePageInstance() ! { ! IHttpHandler handler; ! handler = WebObjectUtils.CreatePageInstance(url); ! if (handler is IApplicationContextAware) { ! ((IApplicationContextAware)handler).ApplicationContext = appContext; } + return handler; + } + /// <summary> + /// Gets or - if not found - creates a process handler instance. + /// </summary> + private IHttpHandler GetOrCreateProcessHandler(HttpContext context) + { + IHttpHandler handler = null; + string processId = context.Request[AbstractProcessHandler.ProcessIdParamName]; + if (processId != null) + { + handler = (IHttpHandler) ProcessManager.GetProcess(processId); + } + + if (handler == null) + { + handler = (IHttpHandler) this.appContext.GetObject(this.pageId); + if (handler is IProcess) + { + ((IProcess) handler).Start(url); + } + } + return handler; + } + + /// <summary> + /// Apply dependency injection stuff on the handler. + /// </summary> + /// <param name="handler"></param> + private void ApplyDependencyInjection(IHttpHandler handler) + { if (handler is Control) { *************** *** 282,288 **** } } ! context.Handler = handler; ! handler.ProcessRequest(context); } --- 327,362 ---- } } + } ! /// <summary> ! /// Applies <see cref="HandlerState"/> to the given handler if applicable. ! /// </summary> ! private void ApplySharedState(IHttpHandler handler) ! { ! if (handler is ISharedStateAware) ! { ! CheckIfPageWasRecompiled(handler); ! ((ISharedStateAware)handler).SharedState = this.handlerState; ! } ! } ! ! /// <summary> ! /// Checks, if page has been recompiled. Creates/discards handlerState if necessary. ! /// </summary> ! /// <param name="handler"></param> ! private void CheckIfPageWasRecompiled(IHttpHandler handler) ! { ! if (handlerType != handler.GetType()) ! { ! lock (SyncRoot) ! { ! if (handlerType != handler.GetType()) ! { ! // discard old handlerState and cache new pagetype ! handlerState = new SynchronizedHashtable(); ! handlerType = handler.GetType(); ! } ! } ! } } |
From: Erich E. <oak...@us...> - 2007-08-23 08:27:11
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/UI In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv26957/UI Modified Files: Page.cs UserControl.cs Log Message: fixed SPRNET-704 fixed SPRNET-705 Index: Page.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/UI/Page.cs,v retrieving revision 1.81 retrieving revision 1.82 diff -C2 -d -r1.81 -r1.82 *** Page.cs 3 Aug 2007 08:31:25 -0000 1.81 --- Page.cs 23 Aug 2007 08:27:08 -0000 1.82 *************** *** 1144,1149 **** protected virtual string GetBindingManagerKey() { ! Type thisType = this.GetType(); ! return CreateSharedStateKey("DataBindingManager") + thisType.GetHashCode(); } --- 1144,1148 ---- protected virtual string GetBindingManagerKey() { ! return CreateSharedStateKey("DataBindingManager"); } *************** *** 1395,1401 **** private void InitializeMessageSource() { - string MessageSourceKey = CreateSharedStateKey("MessageSource"); if (MessageSource == null) { if (this.SharedState[MessageSourceKey] == null) { --- 1394,1400 ---- private void InitializeMessageSource() { if (MessageSource == null) { + string MessageSourceKey = CreateSharedStateKey("MessageSource"); if (this.SharedState[MessageSourceKey] == null) { Index: UserControl.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/UI/UserControl.cs,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** UserControl.cs 1 Aug 2007 23:11:01 -0000 1.48 --- UserControl.cs 23 Aug 2007 08:27:08 -0000 1.49 *************** *** 361,377 **** if (sharedState == null) { ! Application.Lock(); ! try { ! sharedState = Application[this.GetType().FullName + ".SharedState"] as IDictionary; ! if (sharedState == null) { ! sharedState = new SynchronizedHashtable(); ! Application.Add(this.GetType().FullName + ".SharedState", sharedState); } - } - finally - { - Application.UnLock(); } } --- 361,383 ---- if (sharedState == null) { ! string thisTypeKey = this.GetType().FullName + this.GetType().GetHashCode() + ".SharedState"; ! ! sharedState = Application[thisTypeKey] as IDictionary; ! if (sharedState==null) { ! Application.Lock(); ! try { ! sharedState = Application[thisTypeKey] as IDictionary; ! if (sharedState == null) ! { ! sharedState = new SynchronizedHashtable(); ! Application.Add(thisTypeKey, sharedState); ! } ! } ! finally ! { ! Application.UnLock(); } } } *************** *** 397,402 **** protected virtual string GetBindingManagerKey() { ! Type thisType = this.GetType(); ! return thisType.FullName + ".BindingManager" + thisType.GetHashCode(); } --- 403,407 ---- protected virtual string GetBindingManagerKey() { ! return "DataBindingManager"; } *************** *** 635,654 **** protected void InitializeMessageSource() { ! if (MessageSource == null) { ! string key = GetType().FullName + ".MessageSource"; ! MessageSource = (IMessageSource) Context.Cache.Get(key); ! ! if (MessageSource == null) { ! ResourceSetMessageSource defaultMessageSource = new ResourceSetMessageSource(); ! ResourceManager rm = GetLocalResourceManager(); ! if (rm != null) { ! defaultMessageSource.ResourceManagers.Add(rm); } - Context.Cache.Insert(key, defaultMessageSource); - MessageSource = defaultMessageSource; } } } --- 640,668 ---- protected void InitializeMessageSource() { ! if (this.MessageSource == null) { ! string key = CreateSharedStateKey("MessageSource"); ! IDictionary sharedState = this.SharedState; ! IMessageSource messageSource = sharedState[key] as IMessageSource; ! if (messageSource == null) { ! lock(sharedState.SyncRoot) { ! messageSource = sharedState[key] as IMessageSource; ! if (messageSource == null) ! { ! ResourceSetMessageSource defaultMessageSource = new ResourceSetMessageSource(); ! defaultMessageSource.UseCodeAsDefaultMessage = true; ! ResourceManager rm = GetLocalResourceManager(); ! if (rm != null) ! { ! defaultMessageSource.ResourceManagers.Add(rm); ! } ! sharedState[key] = defaultMessageSource; ! messageSource = defaultMessageSource; ! } } } + this.MessageSource = messageSource; } } *************** *** 745,748 **** --- 759,777 ---- #endregion + #region Helper Methods + + /// <summary> + /// Creates a key for shared state, taking into account whether + /// this page belongs to a process or not. + /// </summary> + /// <param name="key">Key suffix</param> + /// <returns>Generated unique shared state key.</returns> + protected string CreateSharedStateKey(string key) + { + return key; + } + + #endregion + #region Dependency Injection Support |
From: Erich E. <oak...@us...> - 2007-08-23 05:33:13
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.NHibernate.Tests/Data/NHibernate/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23120 Modified Files: SessionScopeTests.cs Log Message: added test "DoesNotOpenImmediatelyOnOpenIsFalse" Index: SessionScopeTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.NHibernate.Tests/Data/NHibernate/Support/SessionScopeTests.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SessionScopeTests.cs 22 Aug 2007 20:17:43 -0000 1.1 --- SessionScopeTests.cs 23 Aug 2007 05:32:54 -0000 1.2 *************** *** 103,107 **** [Test] ! public void DoesOpenImmediately() { SessionScope scope = null; --- 103,107 ---- [Test] ! public void DoesOpenImmediatelyOnOpenIsTrue() { SessionScope scope = null; *************** *** 132,135 **** --- 132,159 ---- [Test] + public void DoesNotOpenImmediatelyOnOpenIsFalse() + { + SessionScope scope = null; + using (scope = new SessionScope(expectedSessionFactory, false)) + { + // ensure is *not* open + Assert.IsFalse(scope.IsOpen); + Assert.IsFalse(scope.IsParticipating); + + scope.Open(); + // ensure is open now + Assert.IsTrue(scope.IsOpen); + + scope.Close(); + // ensure is closed + Assert.IsFalse(scope.IsOpen); + Assert.IsFalse(scope.IsParticipating); + } + // ensure is closed + Assert.IsFalse(scope.IsOpen); + Assert.IsFalse(scope.IsParticipating); + } + + [Test] public void SingleSessionRegistersSessionHolderWithTSM() { |
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.NHibernate.Tests/Data/NHibernate/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv32007 Added Files: ConfigSectionSessionScopeSettingsTests.cs SessionScopeSettingsTests.cs SessionScopeTests.cs Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 --- NEW FILE: ConfigSectionSessionScopeSettingsTests.cs --- (This appears to be a binary file; contents omitted.) --- NEW FILE: SessionScopeTests.cs --- (This appears to be a binary file; contents omitted.) --- NEW FILE: SessionScopeSettingsTests.cs --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2007-08-22 20:18:05
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Core/TypeConversion In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31995 Added Files: UniqueKeyConverter.cs Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 --- NEW FILE: UniqueKeyConverter.cs --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2007-08-22 20:17:44
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.Web.Extensions.Example/src/Spring.Web.Extensions.Example.2005/Bin In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31985 Added Files: .cvsignore Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 --- NEW FILE: .cvsignore --- *.dll *.xml *.pdb |
From: Erich E. <oak...@us...> - 2007-08-22 20:17:26
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Services.Tests/Remoting In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31957 Modified Files: RemoteObjectFactoryTests.cs Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 Index: RemoteObjectFactoryTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Services.Tests/Remoting/RemoteObjectFactoryTests.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** RemoteObjectFactoryTests.cs 20 Feb 2007 19:39:56 -0000 1.4 --- RemoteObjectFactoryTests.cs 22 Aug 2007 20:17:19 -0000 1.5 *************** *** 39,43 **** { [Test] ! [ExpectedException(typeof(ArgumentException), "The Target property is required.")] public void BailsWhenNotConfigured() { --- 39,43 ---- { [Test] ! [ExpectedException(typeof(ArgumentException), ExpectedMessage="The Target property is required.")] public void BailsWhenNotConfigured() { |
From: Erich E. <oak...@us...> - 2007-08-22 20:17:15
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31537/Spring.Core.Tests Modified Files: Spring.Core.Tests.2003.csproj Spring.Core.Tests.2005.csproj Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 Index: Spring.Core.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Spring.Core.Tests.2005.csproj,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** Spring.Core.Tests.2005.csproj 8 Aug 2007 17:48:45 -0000 1.60 --- Spring.Core.Tests.2005.csproj 22 Aug 2007 20:17:04 -0000 1.61 *************** *** 90,93 **** --- 90,97 ---- <HintPath>..\..\..\lib\Net\2.0\nunit.framework.dll</HintPath> </Reference> + <Reference Include="Rhino.Mocks, Version=2.9.6.40380, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\lib\Net\2.0\Rhino.Mocks.dll</HintPath> + </Reference> <Reference Include="System"> <Name>System</Name> *************** *** 295,298 **** --- 299,303 ---- <Compile Include="Objects\Factory\Config\RegistryVariableSourceTests.cs" /> <Compile Include="Objects\Factory\Config\TypeAliasConfigurerTests.cs" /> + <Compile Include="Objects\Factory\Config\VariableAccessorTests.cs" /> <Compile Include="Objects\Factory\Config\VariablePlaceholderConfigurerTests.cs" /> <Compile Include="Objects\Factory\DummyConfigurableFactory.cs" /> *************** *** 663,666 **** --- 668,673 ---- <SubType>Code</SubType> </Compile> + <Compile Include="Core\TypeConversion\UniqueKeyConverterTests.cs" /> + <Compile Include="Util\UniqueKeyTests.cs" /> <Compile Include="Validation\Actions\ErrorMessageActionTests.cs" /> <Compile Include="Validation\Actions\ExpressionActionTests.cs" /> Index: Spring.Core.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Spring.Core.Tests.2003.csproj,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** Spring.Core.Tests.2003.csproj 8 Aug 2007 17:48:45 -0000 1.33 --- Spring.Core.Tests.2003.csproj 22 Aug 2007 20:17:04 -0000 1.34 *************** *** 2,6 **** <CSHARP ProjectType = "Local" ! ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{44B16BAA-6DF8-447C-9D7F-3AD3D854D904}" --- 2,6 ---- <CSHARP ProjectType = "Local" ! ProductVersion = "7.10.6030" SchemaVersion = "2.0" ProjectGuid = "{44B16BAA-6DF8-447C-9D7F-3AD3D854D904}" *************** *** 548,551 **** --- 548,556 ---- /> <File + RelPath = "Core\TypeConversion\UniqueKeyConverterTests.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Core\TypeConversion\UriConverterTests.cs" SubType = "Code" *************** *** 1286,1289 **** --- 1291,1299 ---- /> <File + RelPath = "Objects\Factory\Config\VariableAccessorTests.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Objects\Factory\Config\VariablePlaceholderConfigurerTests.cs" SubType = "Code" *************** *** 1714,1717 **** --- 1724,1732 ---- /> <File + RelPath = "Util\UniqueKeyTests.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Validation\AnyValidatorGroupTests.cs" SubType = "Code" |
From: Erich E. <oak...@us...> - 2007-08-22 20:17:15
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Objects/Factory/Config In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31537/Spring.Core.Tests/Objects/Factory/Config Added Files: VariableAccessorTests.cs Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 --- NEW FILE: VariableAccessorTests.cs --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2007-08-22 20:17:15
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Util In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31537/Spring.Core.Tests/Util Added Files: UniqueKeyTests.cs Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 --- NEW FILE: UniqueKeyTests.cs --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2007-08-22 20:17:15
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Testing.NUnit.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31537/Spring.Testing.NUnit.Tests Modified Files: Spring.Testing.NUnit.Tests.2003.csproj Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 Index: Spring.Testing.NUnit.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Testing.NUnit.Tests/Spring.Testing.NUnit.Tests.2003.csproj,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Spring.Testing.NUnit.Tests.2003.csproj 20 Aug 2007 18:38:11 -0000 1.1 --- Spring.Testing.NUnit.Tests.2003.csproj 22 Aug 2007 20:17:05 -0000 1.2 *************** *** 80,83 **** --- 80,93 ---- HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> + <Reference + Name = "nunit.framework" + AssemblyName = "nunit.framework" + HintPath = "..\..\..\lib\Net\1.1\nunit.framework.dll" + /> + <Reference + Name = "Spring.Testing.NUnit.2003" + Project = "{6B8639E3-88BB-4F7B-9F23-699E84C30D58}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> </References> </Build> |
From: Erich E. <oak...@us...> - 2007-08-22 20:17:15
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.NHibernate.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31537/Spring.Data.NHibernate.Tests Modified Files: Spring.Data.NHibernate.Tests.2003.csproj Spring.Data.NHibernate.Tests.2005.csproj Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 Index: Spring.Data.NHibernate.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.NHibernate.Tests/Spring.Data.NHibernate.Tests.2005.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Spring.Data.NHibernate.Tests.2005.csproj 9 Aug 2007 14:23:42 -0000 1.2 --- Spring.Data.NHibernate.Tests.2005.csproj 22 Aug 2007 20:17:04 -0000 1.3 *************** *** 53,56 **** --- 53,60 ---- <HintPath>..\..\..\lib\net\2.0\nunit.framework.dll</HintPath> </Reference> + <Reference Include="Rhino.Mocks, Version=2.9.6.40380, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\lib\Net\2.0\Rhino.Mocks.dll</HintPath> + </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> *************** *** 85,88 **** --- 89,95 ---- <Compile Include="Data\NHibernate\NHTestObjectDao.cs" /> <Compile Include="Data\NHibernate\SimpleService.cs" /> + <Compile Include="Data\NHibernate\Support\ConfigSectionSessionScopeSettingsTests.cs" /> + <Compile Include="Data\NHibernate\Support\SessionScopeSettingsTests.cs" /> + <Compile Include="Data\NHibernate\Support\SessionScopeTests.cs" /> <Compile Include="Data\NHibernate\TestObject.cs" /> </ItemGroup> Index: Spring.Data.NHibernate.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.NHibernate.Tests/Spring.Data.NHibernate.Tests.2003.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Spring.Data.NHibernate.Tests.2003.csproj 3 Aug 2007 08:31:26 -0000 1.2 --- Spring.Data.NHibernate.Tests.2003.csproj 22 Aug 2007 20:17:04 -0000 1.3 *************** *** 130,133 **** --- 130,138 ---- HintPath = "..\..\..\lib\NHibernate10\net\1.1\NHibernate.dll" /> + <Reference + Name = "Rhino.Mocks" + AssemblyName = "Rhino.Mocks" + HintPath = "..\..\..\lib\Net\1.1\Rhino.Mocks.dll" + /> </References> </Build> *************** *** 181,184 **** --- 186,204 ---- BuildAction = "EmbeddedResource" /> + <File + RelPath = "Data\NHibernate\Support\ConfigSectionSessionScopeSettingsTests.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Data\NHibernate\Support\SessionScopeSettingsTests.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Data\NHibernate\Support\SessionScopeTests.cs" + SubType = "Code" + BuildAction = "Compile" + /> </Include> </Files> |
From: Erich E. <oak...@us...> - 2007-08-22 20:17:15
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Core/TypeConversion In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31537/Spring.Core.Tests/Core/TypeConversion Added Files: UniqueKeyConverterTests.cs Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 --- NEW FILE: UniqueKeyConverterTests.cs --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2007-08-22 20:16:55
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Aop.Tests/Aspects/Cache In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31523 Modified Files: CacheResultAdviceTests.cs Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 Index: CacheResultAdviceTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Aop.Tests/Aspects/Cache/CacheResultAdviceTests.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CacheResultAdviceTests.cs 1 Apr 2007 15:05:33 -0000 1.3 --- CacheResultAdviceTests.cs 22 Aug 2007 20:16:51 -0000 1.4 *************** *** 60,63 **** --- 60,67 ---- } + /// <summary> + /// Change History: + /// 2007-08-22 (oakinger): changed behaviour to cache null values as well + /// </summary> [Test] public void CacheResultOfMethodThatReturnsNull() *************** *** 71,78 **** ExpectCallToProceed(expectedReturnValue); ! // there must NOT be a call to put anything in the cache 'cos the retVal is null... object returnValue = advice.Invoke((IMethodInvocation) mockInvocation.Object); Assert.AreEqual(expectedReturnValue, returnValue); ! Assert.AreEqual(0, resultCache.Count); mockInvocation.Verify(); --- 75,83 ---- ExpectCallToProceed(expectedReturnValue); ! // check that the null retVal is cached as well - it might be ! // the result of an expensive webservice/database call etc. object returnValue = advice.Invoke((IMethodInvocation) mockInvocation.Object); Assert.AreEqual(expectedReturnValue, returnValue); ! Assert.AreEqual(1, resultCache.Count); mockInvocation.Verify(); |
From: Erich E. <oak...@us...> - 2007-08-22 20:16:50
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Context/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31356/Context/Support Modified Files: AbstractMessageSource.cs Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 Index: AbstractMessageSource.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Context/Support/AbstractMessageSource.cs,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** AbstractMessageSource.cs 17 Jul 2007 14:51:14 -0000 1.19 --- AbstractMessageSource.cs 22 Aug 2007 20:16:10 -0000 1.20 *************** *** 71,74 **** --- 71,77 ---- #region Constructor + /// <summary> + /// Initializes this instance. + /// </summary> protected AbstractMessageSource() { *************** *** 519,522 **** --- 522,534 ---- } + /// <summary> + /// Gets the specified resource (e.g. Icon or Bitmap). + /// </summary> + /// <param name="name">The name of the resource to resolve.</param> + /// <param name="cultureInfo"> + /// The <see cref="System.Globalization.CultureInfo"/> to resolve the + /// code for. + /// </param> + /// <returns>The resource if found. <see langword="null"/> otherwise.</returns> protected object GetResourceInternal(string name, CultureInfo cultureInfo) { *************** *** 526,530 **** } ! protected void ApplyResourcesInternal(object value, string name, CultureInfo cultureInfo) { if (cultureInfo == null) cultureInfo = CultureInfo.CurrentUICulture; --- 538,555 ---- } ! /// <summary> ! /// Applies resources from the given name on the specified object. ! /// </summary> ! /// <param name="value"> ! /// An object that contains the property values to be applied. ! /// </param> ! /// <param name="objectName"> ! /// The base name of the object to use for key lookup. ! /// </param> ! /// <param name="culture"> ! /// The <see cref="System.Globalization.CultureInfo"/> with which the ! /// resource is associated. ! /// </param> ! protected void ApplyResourcesInternal(object value, string name, CultureInfo cultureInfo) { if (cultureInfo == null) cultureInfo = CultureInfo.CurrentUICulture; |
From: Erich E. <oak...@us...> - 2007-08-22 20:16:50
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Testing.NUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31509 Modified Files: Spring.Testing.NUnit.2003.csproj Log Message: housekeeping fixed SPRNET-697 fixed SPRNET-686 Index: Spring.Testing.NUnit.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Testing.NUnit/Spring.Testing.NUnit.2003.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Spring.Testing.NUnit.2003.csproj 3 Aug 2007 08:31:24 -0000 1.2 --- Spring.Testing.NUnit.2003.csproj 22 Aug 2007 20:16:44 -0000 1.3 *************** *** 105,109 **** BuildAction = "Compile" /> ! <Folder RelPath = "Testing\NUnit\" /> </Include> </Files> --- 105,128 ---- BuildAction = "Compile" /> ! <File ! RelPath = "Testing\NUnit\AbstractDependencyInjectionSpringContextTests.cs" ! SubType = "Code" ! BuildAction = "Compile" ! /> ! <File ! RelPath = "Testing\NUnit\AbstractSpringContextTests.cs" ! SubType = "Code" ! BuildAction = "Compile" ! /> ! <File ! RelPath = "Testing\NUnit\AbstractTransactionalDbProviderSpringContextTests.cs" ! SubType = "Code" ! BuildAction = "Compile" ! /> ! <File ! RelPath = "Testing\NUnit\AbstractTransactionalSpringContextTests.cs" ! SubType = "Code" ! BuildAction = "Compile" ! /> </Include> </Files> |