チェンジセット 1595 (default)


以下の違いを無視:
日時:
2023/08/19 11:43:18 (14ヵ月前)
更新者:
hizuya@…
ログメッセージ:
  • 名前をつかられるオブジェクトを公開。
場所:
framework/trunk
ファイル:
6個の更新
1個の移動

凡例:

未変更
追加
削除
  • framework/trunk/CoreLibrary/CoreLibrary.csproj

    r1589 r1595  
    185185    <Compile Include="Sources\Media\MediaManager.cs" /> 
    186186    <Compile Include="Sources\Media\MimeManager.cs" /> 
     187    <Compile Include="Sources\NamedObject.cs" /> 
    187188    <Compile Include="Sources\Net\Chunk.cs" /> 
    188189    <Compile Include="Sources\Net\ChunkBodyStream.cs" /> 
  • framework/trunk/CoreLibrary/Sources/NamedObject.cs

    r1594 r1595  
    1010//   you may not use this file except in compliance with the License.  You 
    1111//   may obtain a copy of the License at 
    12 //  
     12// 
    1313//     http://www.apache.org/licenses/LICENSE-2.0 
    14 //  
     14// 
    1515//   Unless required by applicable law or agreed to in writing, software 
    1616//   distributed under the License is distributed on an "AS IS" BASIS, 
     
    2020// </license> 
    2121// ---------------------------------------------------------------------------- 
    22 namespace FCSoft.SilverFrost.Framework.Web 
     22namespace FCSoft.SilverFrost.Framework 
    2323{ 
    24     using System.Web; 
     24    using System.Diagnostics; 
    2525 
    2626 
    2727    /// <summary> 
    28     /// <see cref="HttpContext"/> に格納するアイテムのキーで使用するクラスです。 
     28    /// 文字列の名前が付けられたオブジェクトです。 
    2929    /// </summary> 
    30     internal sealed class HttpContextItemKey 
     30    [DebuggerDisplay(@"{name,nq}")] 
     31    public class NamedObject 
    3132    { 
    3233        /// <summary> 
    33         /// キーに使用する名前。 
     34        /// インスタンスに使用する名前。 
    3435        /// </summary> 
    3536        private readonly string name; 
     
    3839        /// インスタンスを作成します。 
    3940        /// </summary> 
    40         /// <param name="name">キーに使用する名前。</param> 
    41         internal HttpContextItemKey(string name) 
     41        /// <param name="name">インスタンスに使用する名前。</param> 
     42        public NamedObject(string name) 
    4243        { 
    4344            this.name = name; 
     
    4546 
    4647        /// <summary> 
    47         /// 現在の <see cref="HttpContextItemKey"/> を表す <see cref="string"/> を返します。 
     48        /// 現在の <see cref="NamedObject"/> を表す <see cref="string"/> を返します。 
    4849        /// </summary> 
    4950        /// <returns> 
    50         /// 現在の <see cref="HttpContextItemKey"/> を表す <see cref="string"/>。 
     51        /// 現在の <see cref="NamedObject"/> を表す <see cref="string"/>。 
    5152        /// </returns> 
    5253        public override string ToString() 
  • framework/trunk/WebLibrary/Sources/RequestIdentity.cs

    r1127 r1595  
    1010//   you may not use this file except in compliance with the License.  You 
    1111//   may obtain a copy of the License at 
    12 //  
     12// 
    1313//     http://www.apache.org/licenses/LICENSE-2.0 
    14 //  
     14// 
    1515//   Unless required by applicable law or agreed to in writing, software 
    1616//   distributed under the License is distributed on an "AS IS" BASIS, 
     
    4040        /// リクエストカウンターを格納する <see cref="HttpContext.Items"/> のキー。 
    4141        /// </summary> 
    42         private static readonly HttpContextItemKey RequestIdentityKey 
    43             = new HttpContextItemKey("SilverFrostFramework:RequestIdentity"); 
     42        private static readonly NamedObject RequestIdentityKey 
     43            = new NamedObject("SilverFrostFramework:RequestIdentity"); 
    4444 
    4545        /// <summary> 
  • framework/trunk/WebLibrary/Sources/Utility.cs

    r1555 r1595  
    5050        /// 認証が必要だとマークに使用する <see cref="HttpContext.Items"/> のキー。 
    5151        /// </summary> 
    52         internal static readonly HttpContextItemKey NeedAuthorizationKey 
    53             = new HttpContextItemKey("SilverFrostFramework:NeedAuthorization"); 
     52        internal static readonly NamedObject NeedAuthorizationKey 
     53            = new NamedObject("SilverFrostFramework:NeedAuthorization"); 
    5454 
    5555        /// <summary> 
  • framework/trunk/WebLibrary/Sources/WebLogger.cs

    r1233 r1595  
    4444        /// を格納するためのキー。 
    4545        /// </summary> 
    46         private static readonly HttpContextItemKey WebLogContextItemKey = new HttpContextItemKey("SilverFrostFramework:WebLog"); 
     46        private static readonly NamedObject WebLogContextItemKey = new NamedObject("SilverFrostFramework:WebLog"); 
    4747 
    4848 
  • framework/trunk/WebLibrary/WebLibrary.csproj

    r1576 r1595  
    9999    <Compile Include="Sources\Hosting\EndRequestEventArgs.cs" /> 
    100100    <Compile Include="Sources\HttpAbortException.cs" /> 
    101     <Compile Include="Sources\HttpContextItemKey.cs" /> 
    102101    <Compile Include="Sources\IWebHandler.cs" /> 
    103102    <Compile Include="Sources\Modules\RequestContentTypeComplementModule.cs" /> 
  • framework/trunk/WebTest/WebTest.csproj

    r1593 r1595  
    9393  <ItemGroup> 
    9494    <None Include="app.config" /> 
    95     <EmbeddedResource Include="TestResources\Hosting\Web.config" /> 
     95    <EmbeddedResource Include="TestResources\Hosting\Web.config"> 
     96      <SubType>Designer</SubType> 
     97    </EmbeddedResource> 
    9698  </ItemGroup> 
    9799  <ItemGroup> 
詳しい使い方は TracChangeset を参照してください。