Changeset 4627
- Timestamp:
- 02/19/08 09:18:32 (10 months ago)
- Files:
-
- trunk/nuxleus/Source/Nuxleus.Authentication/Nuxleus.Authentication.csproj (modified) (1 diff)
- trunk/nuxleus/Source/Nuxleus.Web/HttpHandler/NuxleusHttpAsyncXmlServiceOperationHandler.cs (modified) (2 diffs)
- trunk/nuxleus/Source/Nuxleus/Nuxleus.csproj (modified) (1 diff)
- trunk/nuxleus/Source/Xameleon/Function/HttpRequestCollection.cs (modified) (6 diffs)
- trunk/nuxleus/Source/nuXleus.sln (modified) (3 diffs)
- trunk/nuxleus/Web/4lessig.org/service/transform/atomictalk/base.xslt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/nuxleus/Source/Nuxleus.Authentication/Nuxleus.Authentication.csproj
r4555 r4627 60 60 <None Include="Extf.Net.snk" /> 61 61 </ItemGroup> 62 <ItemGroup> 63 <Folder Include="OAuth\" /> 64 </ItemGroup> 62 65 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 63 66 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. trunk/nuxleus/Source/Nuxleus.Web/HttpHandler/NuxleusHttpAsyncXmlServiceOperationHandler.cs
r4620 r4627 212 212 m_lastModifiedDate = DateTime.UtcNow.ToString("r"); 213 213 } 214 context.Response.AppendHeader("Cache-Control", "max-age= 3600");214 context.Response.AppendHeader("Cache-Control", "max-age=86400"); 215 215 context.Response.AddHeader("Last-Modified", m_lastModifiedDate); 216 216 context.Response.AddHeader("ETag", String.Format("\"{0}\"", m_requestHashcode)); … … 229 229 if (!m_CONTENT_IS_MEMCACHED && m_USE_MEMCACHED) { 230 230 Console.WriteLine("Adding Last Modified Key: {0}", m_lastModifiedKey); 231 m_memcachedClient.Set(m_context.GetRequestHashcode(true).ToString(), output, DateTime.Now.AddHours( 4));231 m_memcachedClient.Set(m_context.GetRequestHashcode(true).ToString(), output, DateTime.Now.AddHours(24)); 232 232 m_memcachedClient.Set(m_lastModifiedKey, m_lastModifiedDate); 233 233 } trunk/nuxleus/Source/Nuxleus/Nuxleus.csproj
r4555 r4627 38 38 </PropertyGroup> 39 39 <ItemGroup> 40 <Reference Include="erb, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> 41 <SpecificVersion>False</SpecificVersion> 42 <HintPath>C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\erb\erb\bin\Debug\erb.dll</HintPath> 43 </Reference> 44 <Reference Include="QUT.SymbolWriter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=8b16d9e060688056, processorArchitecture=x86"> 45 <SpecificVersion>False</SpecificVersion> 46 <HintPath>C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\erb\erb\bin\Debug\QUT.SymbolWriter.dll</HintPath> 47 </Reference> 40 48 <Reference Include="System" /> 41 49 <Reference Include="System.Core"> trunk/nuxleus/Source/Xameleon/Function/HttpRequestCollection.cs
r4533 r4627 4 4 using System.Web; 5 5 6 namespace Xameleon.Function 7 { 6 namespace Xameleon.Function { 8 7 9 public class HttpRequestCollection 10 { 8 public class HttpRequestCollection { 11 9 12 10 static string notSet = "not-set"; 13 11 14 public static string GetValue(HttpRequest request, string type, string key) 15 { 16 try 17 { 18 switch (type) 19 { 12 public static string GetValue ( HttpRequest request, string type, string key ) { 13 try { 14 switch (type) { 20 15 case "cookie": 21 if (request.Cookies.Count > 0) 22 { 16 if (request.Cookies.Count > 0) { 23 17 IEnumerator enumerator = request.Cookies.GetEnumerator(); 24 for (int i = 0; enumerator.MoveNext(); i++) 25 { 18 for (int i = 0; enumerator.MoveNext(); i++) { 26 19 string local = request.Cookies.AllKeys[i].ToString(); 27 if (local == key) 28 { 20 if (local == key) { 29 21 return request.Cookies[local].Value; 30 22 } … … 35 27 36 28 case "form": 37 if (request.Form.Count > 0) 38 { 29 if (request.Form.Count > 0) { 39 30 IEnumerator enumerator = request.Form.GetEnumerator(); 40 for (int i = 0; enumerator.MoveNext(); i++) 41 { 31 for (int i = 0; enumerator.MoveNext(); i++) { 32 42 33 string local = request.Form.AllKeys[i].ToString(); 43 if (local == key)44 {34 Console.WriteLine("Form Value {0}", local); 35 if (local == key) { 45 36 return request.Form[local]; 46 37 } … … 51 42 52 43 case "query-string": 53 if (request.QueryString.Count > 0) 54 { 44 if (request.QueryString.Count > 0) { 55 45 IEnumerator enumerator = request.QueryString.GetEnumerator(); 56 for (int i = 0; enumerator.MoveNext(); i++) 57 { 46 for (int i = 0; enumerator.MoveNext(); i++) { 58 47 string local = request.QueryString.AllKeys[i].ToString(); 59 if (local == key) 60 { 48 if (local == key) { 61 49 return request.QueryString[local]; 62 50 } … … 66 54 return notSet; 67 55 case "server-variable": 68 if (request.ServerVariables.Count > 0) 69 { 56 if (request.ServerVariables.Count > 0) { 70 57 IEnumerator enumerator = request.ServerVariables.GetEnumerator(); 71 for (int i = 0; enumerator.MoveNext(); i++) 72 { 58 for (int i = 0; enumerator.MoveNext(); i++) { 73 59 string local = request.ServerVariables.AllKeys[i].ToString(); 74 if (local == key) 75 { 60 if (local == key) { 76 61 return request.ServerVariables[local]; 77 62 } … … 82 67 83 68 case "header": 84 if (request.Headers.Count > 0) 85 { 69 if (request.Headers.Count > 0) { 86 70 IEnumerator enumerator = request.Headers.GetEnumerator(); 87 for (int i = 0; enumerator.MoveNext(); i++) 88 { 71 for (int i = 0; enumerator.MoveNext(); i++) { 89 72 string local = request.Headers.AllKeys[i].ToString(); 90 if (local == key) 91 { 73 if (local == key) { 92 74 return request.Headers[local]; 93 75 } … … 96 78 } 97 79 return notSet; 98 case "file": 99 if(request.Files.Count > 0) 100 { 101 foreach (string fieldName in request.Files.AllKeys) 102 { 103 if(fieldName == key) { 104 return fieldName; 105 } 106 } 107 } 108 return notSet; 80 case "file": 81 if (request.Files.Count > 0) { 82 foreach (string fieldName in request.Files.AllKeys) { 83 if (fieldName == key) { 84 return fieldName; 85 } 86 } 87 } 88 return notSet; 109 89 default: 110 90 return notSet; 111 91 } 112 92 113 } 114 catch (Exception e) 115 { 93 } catch (Exception e) { 116 94 Debug.WriteLine("Error: " + e.Message); 117 95 return e.Message; trunk/nuxleus/Source/nuXleus.sln
r4584 r4627 171 171 EndProject 172 172 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nuxleus.Drawing", "Nuxleus.Drawing\Nuxleus.Drawing.csproj", "{13FADE77-14DD-4F14-A52E-63AE71DB1756}" 173 EndProject 174 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nuxleus.Extension.MySpace", "Nuxleus.Extension.MySpace\Nuxleus.Extension.MySpace.csproj", "{1A6A1729-0B96-40A7-A4B5-6DADE71682B3}" 173 175 EndProject 174 176 Global … … 692 694 {13FADE77-14DD-4F14-A52E-63AE71DB1756}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 693 695 {13FADE77-14DD-4F14-A52E-63AE71DB1756}.Release|Mixed Platforms.Build.0 = Release|Any CPU 696 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|.NET.ActiveCfg = Debug|Any CPU 697 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 698 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|Any CPU.Build.0 = Debug|Any CPU 699 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 700 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 701 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|.NET.ActiveCfg = Release|Any CPU 702 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|Any CPU.ActiveCfg = Release|Any CPU 703 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|Any CPU.Build.0 = Release|Any CPU 704 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 705 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3}.Release|Mixed Platforms.Build.0 = Release|Any CPU 694 706 EndGlobalSection 695 707 GlobalSection(SolutionProperties) = preSolution … … 735 747 {D937BA9E-1E6C-4757-98CC-7D932F4697B0} = {0A887F73-C7E8-430A-AB73-EA9E5F822CB4} 736 748 {13FADE77-14DD-4F14-A52E-63AE71DB1756} = {0A887F73-C7E8-430A-AB73-EA9E5F822CB4} 749 {1A6A1729-0B96-40A7-A4B5-6DADE71682B3} = {0A887F73-C7E8-430A-AB73-EA9E5F822CB4} 737 750 {A800D9F1-D877-4076-99BA-CBD73BCFB203} = {138403FE-C587-460E-A3C8-77B713E904C9} 738 751 {64C1203C-1912-4FE0-BA73-01BA2B0758E4} = {216314AA-0FA4-4DD9-8BD9-77D5D8869820} trunk/nuxleus/Web/4lessig.org/service/transform/atomictalk/base.xslt
r4624 r4627 70 70 </xsl:variable> 71 71 <xsl:variable name="lb"> 72 <xsl:text></xsl:text> 72 <xsl:text> 73 </xsl:text> 73 74 </xsl:variable> 74 75 <xsl:variable name="q">"</xsl:variable>
