diff --git a/Docs/CSDN课程/多语言编程的艺术.第一章第1节.pptx b/Docs/CSDN课程/多语言编程的艺术.第一章第1节.pptx new file mode 100644 index 0000000..3717f73 Binary files /dev/null and b/Docs/CSDN课程/多语言编程的艺术.第一章第1节.pptx differ diff --git a/Docs/assets/ppt/多语言编程的艺术.第一章第1节.pptx b/Docs/assets/ppt/多语言编程的艺术.第一章第1节.pptx new file mode 100644 index 0000000..adbe508 Binary files /dev/null and b/Docs/assets/ppt/多语言编程的艺术.第一章第1节.pptx differ diff --git a/Docs/多语言笔记.4.1.使用 WebApi.ipynb b/Docs/多语言笔记.4.1.使用 WebApi.ipynb index d1a3c74..9bf8e7c 100644 --- a/Docs/多语言笔记.4.1.使用 WebApi.ipynb +++ b/Docs/多语言笔记.4.1.使用 WebApi.ipynb @@ -18,7 +18,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 4, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -31,16 +31,7 @@ { "data": { "text/html": [ - "
Restore sources
Installed Packages
" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/plain": [ - "Loading extension script from `C:\\Users\\ruyu\\.nuget\\packages\\microsoft.dotnet.interactive.aspnetcore\\1.0.0-beta.24229.4\\interactive-extensions\\dotnet\\extension.dib`" + "
Installed Packages
" ] }, "metadata": {}, @@ -49,7 +40,7 @@ ], "source": [ "// 可以先添加包源\n", - "#i \"https://api.nuget.org/v3/index.json\"\n", + "//#i \"https://api.nuget.org/v3/index.json\"\n", "\n", "//添加 Nuget 包\n", "#r \"nuget: microsoft.dotNet.interactive.aspnetcore,*-*\"" @@ -65,7 +56,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 5, "metadata": { "dotnet_interactive": { "language": "csharp" @@ -78,75 +69,38 @@ { "data": { "text/html": [ - "

Request


GET http://127.0.0.1:4230/ HTTP/1.1

Headers
NameValue
traceparent00-9f30dd383da7da9695452942910e5eeb-9074df5bcf652253-00
Body (0 bytes)

Response


HTTP/1.1 200 OK ( ms)

Headers
NameValue
DateSun, 05 May 2024 16:42:55 GMT
ServerKestrel
Transfer-Encodingchunked
Content-Length18
Body (18 bytes)Hello from MapGet!
" - ], - "text/plain": [ - "Request Method: GET\r\n", - "Request URI: http://127.0.0.1:4230/\r\n", - "Request Version: HTTP/1.1\r\n", - "\r\n", - "Status Code: 200 OK\r\n", - "Elapsed: ms\r\n", - "Version: HTTP/1.1\r\n", - "Content Type: \r\n", - "Content Length: 18 bytes\r\n", - "\r\n", - "Date: Sun, 05 May 2024 16:42:55 GMT\r\n", - "Server: Kestrel\r\n", - "Transfer-Encoding: chunked\r\n", - "Content-Length: 18\r\n", - "Body: Hello from MapGet!\r\n" + "
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:\\r\\n{\\r\\n Date: Fri, 09 May 2025 18:26:03 GMT\\r\\n Server: Kestrel\\r\\n Transfer-Encoding: chunked\\r\\n}
Version
1.1
Major
1
Minor
1
Build
-1
Revision
-1
MajorRevision
-1
MinorRevision
-1
Content
System.Net.Http.HttpConnectionResponseContent
Headers
[ ]
Allow
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
ContentDisposition
<null>
ContentEncoding
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
ContentLanguage
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
ContentLength
18
ContentLocation
<null>
ContentMD5
<null>
ContentRange
<null>
ContentType
<null>
Expires
<null>
LastModified
<null>
NonValidated
[ [Content-Length, 18] ]
Count
1
(values)
indexvalue
0
[Content-Length, 18]
Key
Content-Length
Value
[ 18 ]
Count1
(values)
[ 18 ]
(values)
indexvalue
0
[Content-Length, System.String[]]
Key
Content-Length
Value
[ 18 ]
StatusCodeOK
ReasonPhrase
OK
Headers
[ [Date, System.String[]], [Server, System.String[]], [Transfer-Encoding, System.String[]] ]
AcceptRanges
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
Age
<null>
ETag
<null>
Location
<null>
ProxyAuthenticate
[ ]
Count
0
IsReadOnly
False
(values)(empty)
RetryAfter
<null>
Server
[ Kestrel ]
Count
1
IsReadOnly
False
(values)
indexvalue
0
Kestrel
Product
Kestrel
Name
Kestrel
Version
<null>
Comment
<null>
Vary
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
WwwAuthenticate
[ ]
Count
0
IsReadOnly
False
(values)(empty)
CacheControl
<null>
Connection
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
ConnectionClose
<null>
Date2025-05-09 18:26:03Z
Pragma
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Trailer
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
TransferEncoding
[ chunked ]
Count
1
IsReadOnly
False
(values)
indexvalue
0
chunked
Value
chunked
Parameters
[ ]
Count
0
IsReadOnly
False
(values)(empty)
TransferEncodingChunked
True
Upgrade
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Via
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Warning
[ ]
Count
0
IsReadOnly
False
(values)(empty)
NonValidated
[ [Date, Fri, 09 May 2025 18:26:03 GMT], [Server, Kestrel], [Transfer-Encoding, chunked] ]
Count
3
(values)
indexvalue
0
[Date, Fri, 09 May 2025 18:26:03 GMT]
Key
Date
Value
[ Fri, 09 May 2025 18:26:03 GMT ]
Count
1
(values)
[ Fri, 09 May 2025 18:26:03 GMT ]
1
[Server, Kestrel]
Key
Server
Value
[ Kestrel ]
Count
1
(values)
[ Kestrel ]
2
[Transfer-Encoding, chunked]
Key
Transfer-Encoding
Value
[ chunked ]
Count
1
(values)
[ chunked ]
(values)
indexvalue
0
[Date, System.String[]]
Key
Date
Value
[ Fri, 09 May 2025 18:26:03 GMT ]
1
[Server, System.String[]]
Key
Server
Value
[ Kestrel ]
2
[Transfer-Encoding, System.String[]]
Key
Transfer-Encoding
Value
[ chunked ]
TrailingHeaders
[ ]
AcceptRanges
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
Age
<null>
ETag
<null>
Location
<null>
ProxyAuthenticate
[ ]
Count
0
IsReadOnly
False
(values)(empty)
RetryAfter
<null>
Server
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Vary
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
WwwAuthenticate
[ ]
Count
0
IsReadOnly
False
(values)(empty)
CacheControl
<null>
Connection
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
ConnectionClose
<null>
Date
<null>
Pragma
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Trailer
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
TransferEncoding
[ ]
Count
0
IsReadOnly
False
(values)(empty)
TransferEncodingChunked
<null>
Upgrade
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Via
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Warning
[ ]
Count
0
IsReadOnly
False
(values)(empty)
NonValidated
[ ]
Count
0
(values)(empty)
(values)(empty)
RequestMessage
Method: GET, RequestUri: 'http://127.0.0.1:20722/', Version: 1.1, Content: <null>, Headers:\\r\\n{\\r\\n traceparent: 00-c7d6e9d39bcede44aeafb0bedb3895c8-d98d744eb652039e-00\\r\\n}
Version
1.1
Major
1
Minor
1
Build
-1
Revision
-1
MajorRevision
-1
MinorRevision
-1
VersionPolicyRequestVersionOrLower
Content
<null>
Method
GET
Method
GET
RequestUri
http://127.0.0.1:20722/
AbsolutePath
/
AbsoluteUri
http://127.0.0.1:20722/
LocalPath
/
Authority
127.0.0.1:20722
HostNameTypeIPv4
IsDefaultPort
False
IsFile
False
IsLoopback
True
PathAndQuery
/
Segments
[ / ]
IsUnc
False
Host
127.0.0.1
Port
20722
Query
Fragment
Scheme
http
OriginalString
http://127.0.0.1:20722/
DnsSafeHost
127.0.0.1
IdnHost
127.0.0.1
IsAbsoluteUri
True
UserEscaped
False
UserInfo
Headers
[ [traceparent, System.String[]] ]
Accept
[ ]
Count
0
IsReadOnly
False
(values)(empty)
AcceptCharset
[ ]
Count
0
IsReadOnly
False
(values)(empty)
AcceptEncoding
[ ]
Count
0
IsReadOnly
False
(values)(empty)
AcceptLanguage
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Authorization
<null>
ExpectContinue
<null>
From
<null>
Host
<null>
IfMatch
[ ]
Count
0
IsReadOnly
False
(values)(empty)
IfModifiedSince
<null>
IfNoneMatch
[ ]
Count
0
IsReadOnly
False
(values)(empty)
IfRange
<null>
IfUnmodifiedSince
<null>
MaxForwards
<null>
Protocol
<null>
ProxyAuthorization
<null>
Range
<null>
Referrer
<null>
TE
[ ]
Count
0
IsReadOnly
False
(values)(empty)
UserAgent
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Expect
[ ]
Count
0
IsReadOnly
False
(values)(empty)
CacheControl
<null>
Connection
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
ConnectionClose
<null>
Date
<null>
Pragma
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Trailer
[ ]
Count
0
IsReadOnly
False
(values)
[  ]
TransferEncoding
[ ]
Count
0
IsReadOnly
False
(values)(empty)
TransferEncodingChunked
<null>
Upgrade
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Via
[ ]
Count
0
IsReadOnly
False
(values)(empty)
Warning
[ ]
Count
0
IsReadOnly
False
(values)(empty)
NonValidated
[ [traceparent, 00-c7d6e9d39bcede44aeafb0bedb3895c8-d98d744eb652039e-00] ]
Count
1
(values)
indexvalue
0
[traceparent, 00-c7d6e9d39bcede44aeafb0bedb3895c8-d98d744eb652039e-00]
Key
traceparent
Value
[ 00-c7d6e9d39bcede44aeafb0bedb3895c8-d98d744eb652039e-00 ]
Count1
(values)
[ 00-c7d6e9d39bcede44aeafb0bedb3895c8-d98d744eb652039e-00 ]
(values)
indexvalue
0
[traceparent, System.String[]]
Key
traceparent
Value
[ 00-c7d6e9d39bcede44aeafb0bedb3895c8-d98d744eb652039e-00 ]
Properties
keyvalue
aspnetcore-logs
indexvalue
0
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Server.Kestrel.Connections
EventId
ConnectionAccepted
Id39
NameConnectionAccepted
Message
Connection id "0HNCF4RQHPC18" accepted.
Exception
<null>
1
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Server.Kestrel.Connections
EventId
ConnectionStart
Id1
NameConnectionStart
Message
Connection id "0HNCF4RQHPC18" started.
Exception
<null>
2
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelInformation
Category
Microsoft.AspNetCore.Hosting.Diagnostics
EventId
1
Id1
Name
<null>
Message
Request starting HTTP/1.1 GET http://127.0.0.1:20722/ - - -
Exception
<null>
3
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelTrace
Category
Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware
EventId
AllHostsAllowed
Id2
NameAllHostsAllowed
Message
All hosts are allowed.
Exception
<null>
4
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Routing.Matching.DfaMatcher
EventId
CandidatesFound
Id1001
NameCandidatesFound
Message
1 candidate(s) found for the request path '/'
Exception
<null>
5
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware
EventId
MatchSuccess
Id1
NameMatchSuccess
Message
Request matched endpoint 'HTTP: GET /'
Exception
<null>
6
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelTrace
Category
Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware
EventId
RequestSizeLimitMetadataNotFound
Id8
NameRequestSizeLimitMetadataNotFound
Message
The endpoint does not specify the IRequestSizeLimitMetadata.
Exception
<null>
7
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelInformation
Category
Microsoft.AspNetCore.Routing.EndpointMiddleware
EventId
ExecutingEndpoint
Id0
NameExecutingEndpoint
Message
Executing endpoint 'HTTP: GET /'
Exception
<null>
8
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelInformation
Category
Microsoft.AspNetCore.Routing.EndpointMiddleware
EventId
ExecutedEndpoint
Id1
NameExecutedEndpoint
Message
Executed endpoint 'HTTP: GET /'
Exception
<null>
9
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Server.Kestrel.Connections
EventId
ConnectionKeepAlive
Id9
NameConnectionKeepAlive
Message
Connection id "0HNCF4RQHPC18" completed keep alive response.
Exception
<null>
10
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelInformation
Category
Microsoft.AspNetCore.Hosting.Diagnostics
EventId
2
Id2
Name
<null>
Message
Request finished HTTP/1.1 GET http://127.0.0.1:20722/ - 200 - - 90.9290ms
Exception
<null>
Options
keyvalue
aspnetcore-logs
indexvalue
0
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Server.Kestrel.Connections
EventId
ConnectionAccepted
Id39
NameConnectionAccepted
Message
Connection id "0HNCF4RQHPC18" accepted.
Exception
<null>
1
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Server.Kestrel.Connections
EventId
ConnectionStart
Id1
NameConnectionStart
Message
Connection id "0HNCF4RQHPC18" started.
Exception
<null>
2
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelInformation
Category
Microsoft.AspNetCore.Hosting.Diagnostics
EventId
1
Id1
Name
<null>
Message
Request starting HTTP/1.1 GET http://127.0.0.1:20722/ - - -
Exception
<null>
3
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelTrace
Category
Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware
EventId
AllHostsAllowed
Id2
NameAllHostsAllowed
Message
All hosts are allowed.
Exception
<null>
4
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Routing.Matching.DfaMatcher
EventId
CandidatesFound
Id1001
NameCandidatesFound
Message
1 candidate(s) found for the request path '/'
Exception
<null>
5
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware
EventId
MatchSuccess
Id1
NameMatchSuccess
Message
Request matched endpoint 'HTTP: GET /'
Exception
<null>
6
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelTrace
Category
Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware
EventId
RequestSizeLimitMetadataNotFound
Id8
NameRequestSizeLimitMetadataNotFound
Message
The endpoint does not specify the IRequestSizeLimitMetadata.
Exception
<null>
7
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelInformation
Category
Microsoft.AspNetCore.Routing.EndpointMiddleware
EventId
ExecutingEndpoint
Id0
NameExecutingEndpoint
Message
Executing endpoint 'HTTP: GET /'
Exception
<null>
8
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelInformation
Category
Microsoft.AspNetCore.Routing.EndpointMiddleware
EventId
ExecutedEndpoint
Id1
NameExecutedEndpoint
Message
Executed endpoint 'HTTP: GET /'
Exception
<null>
9
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelDebug
Category
Microsoft.AspNetCore.Server.Kestrel.Connections
EventId
ConnectionKeepAlive
Id9
NameConnectionKeepAlive
Message
Connection id "0HNCF4RQHPC18" completed keep alive response.
Exception
<null>
10
Microsoft.DotNet.Interactive.AspNetCore.LogMessage
LogLevelInformation
Category
Microsoft.AspNetCore.Hosting.Diagnostics
EventId
2
Id2
Name
<null>
Message
Request finished HTTP/1.1 GET http://127.0.0.1:20722/ - 200 - - 90.9290ms
Exception
<null>
IsSuccessStatusCode
True
" ] }, "metadata": {},