├── AspNetCoreJwtDemo
├── AspNetCoreJwtDemo.sln
└── AspNetCoreJwtDemo
│ ├── AspNetCoreJwtDemo.csproj
│ ├── AspNetCoreJwtDemo.csproj.user
│ ├── Controllers
│ ├── AuthenticationController.cs
│ └── WeatherForecastController.cs
│ ├── IAuthenticateService.cs
│ ├── IUserService.cs
│ ├── Program.cs
│ ├── Properties
│ └── launchSettings.json
│ ├── Startup.cs
│ ├── TokenManagement.cs
│ ├── WeatherForecast.cs
│ ├── appsettings.Development.json
│ ├── appsettings.json
│ ├── bin
│ └── Debug
│ │ └── netcoreapp3.1
│ │ ├── AspNetCoreJwtDemo.deps.json
│ │ ├── AspNetCoreJwtDemo.dll
│ │ ├── AspNetCoreJwtDemo.exe
│ │ ├── AspNetCoreJwtDemo.pdb
│ │ ├── AspNetCoreJwtDemo.runtimeconfig.dev.json
│ │ ├── AspNetCoreJwtDemo.runtimeconfig.json
│ │ ├── Microsoft.AspNetCore.Authentication.JwtBearer.dll
│ │ ├── Microsoft.AspNetCore.Razor.Language.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.dll
│ │ ├── Microsoft.CodeAnalysis.Razor.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.dll
│ │ ├── Microsoft.CodeAnalysis.dll
│ │ ├── Microsoft.IdentityModel.JsonWebTokens.dll
│ │ ├── Microsoft.IdentityModel.Logging.dll
│ │ ├── Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
│ │ ├── Microsoft.IdentityModel.Protocols.dll
│ │ ├── Microsoft.IdentityModel.Tokens.dll
│ │ ├── Microsoft.VisualStudio.Web.CodeGeneration.Contracts.dll
│ │ ├── Microsoft.VisualStudio.Web.CodeGeneration.Core.dll
│ │ ├── Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.dll
│ │ ├── Microsoft.VisualStudio.Web.CodeGeneration.Templating.dll
│ │ ├── Microsoft.VisualStudio.Web.CodeGeneration.Utils.dll
│ │ ├── Microsoft.VisualStudio.Web.CodeGeneration.dll
│ │ ├── Microsoft.VisualStudio.Web.CodeGenerators.Mvc.dll
│ │ ├── Newtonsoft.Json.dll
│ │ ├── NuGet.Frameworks.dll
│ │ ├── Properties
│ │ └── launchSettings.json
│ │ ├── System.Composition.AttributedModel.dll
│ │ ├── System.Composition.Convention.dll
│ │ ├── System.Composition.Hosting.dll
│ │ ├── System.Composition.Runtime.dll
│ │ ├── System.Composition.TypedParts.dll
│ │ ├── System.IdentityModel.Tokens.Jwt.dll
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ ├── cs
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── de
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── dotnet-aspnet-codegenerator-design.dll
│ │ ├── es
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── fr
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── it
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── ja
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── ko
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── pl
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── pt-BR
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── ru
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── tr
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ ├── zh-Hans
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ │ └── zh-Hant
│ │ ├── Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
│ │ ├── Microsoft.CodeAnalysis.CSharp.resources.dll
│ │ ├── Microsoft.CodeAnalysis.Workspaces.resources.dll
│ │ └── Microsoft.CodeAnalysis.resources.dll
│ └── obj
│ ├── AspNetCoreJwtDemo.csproj.nuget.cache
│ ├── AspNetCoreJwtDemo.csproj.nuget.dgspec.json
│ ├── AspNetCoreJwtDemo.csproj.nuget.g.props
│ ├── AspNetCoreJwtDemo.csproj.nuget.g.targets
│ ├── Debug
│ └── netcoreapp3.1
│ │ ├── AspNetCoreJwtDemo.AssemblyInfo.cs
│ │ ├── AspNetCoreJwtDemo.AssemblyInfoInputs.cache
│ │ ├── AspNetCoreJwtDemo.MvcApplicationPartsAssemblyInfo.cache
│ │ ├── AspNetCoreJwtDemo.RazorTargetAssemblyInfo.cache
│ │ ├── AspNetCoreJwtDemo.assets.cache
│ │ ├── AspNetCoreJwtDemo.csproj.CopyComplete
│ │ ├── AspNetCoreJwtDemo.csproj.FileListAbsolute.txt
│ │ ├── AspNetCoreJwtDemo.csprojAssemblyReference.cache
│ │ ├── AspNetCoreJwtDemo.dll
│ │ ├── AspNetCoreJwtDemo.exe
│ │ ├── AspNetCoreJwtDemo.pdb
│ │ └── staticwebassets
│ │ ├── AspNetCoreJwtDemo.StaticWebAssets.Manifest.cache
│ │ └── AspNetCoreJwtDemo.StaticWebAssets.xml
│ └── project.assets.json
├── HEAD
├── LICENSE
├── LiveChartSample
├── LiveChartApp
│ ├── App.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── LiveChartApp.csproj
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── bin
│ │ └── Debug
│ │ │ ├── LiveChartApp.exe
│ │ │ ├── LiveChartApp.exe.config
│ │ │ ├── LiveChartApp.pdb
│ │ │ ├── LiveCharts.Wpf.dll
│ │ │ ├── LiveCharts.Wpf.pdb
│ │ │ ├── LiveCharts.Wpf.xml
│ │ │ ├── LiveCharts.dll
│ │ │ ├── LiveCharts.pdb
│ │ │ └── LiveCharts.xml
│ ├── obj
│ │ └── Debug
│ │ │ ├── App.g.cs
│ │ │ ├── App.g.i.cs
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── LiveChartApp.Properties.Resources.resources
│ │ │ ├── LiveChartApp.csproj.CopyComplete
│ │ │ ├── LiveChartApp.csproj.CoreCompileInputs.cache
│ │ │ ├── LiveChartApp.csproj.FileListAbsolute.txt
│ │ │ ├── LiveChartApp.csproj.GenerateResource.cache
│ │ │ ├── LiveChartApp.csprojAssemblyReference.cache
│ │ │ ├── LiveChartApp.exe
│ │ │ ├── LiveChartApp.g.resources
│ │ │ ├── LiveChartApp.pdb
│ │ │ ├── LiveChartApp_MarkupCompile.cache
│ │ │ ├── LiveChartApp_MarkupCompile.i.cache
│ │ │ ├── LiveChartApp_MarkupCompile.i.lref
│ │ │ ├── LiveChartApp_MarkupCompile.lref
│ │ │ ├── MainWindow.baml
│ │ │ ├── MainWindow.g.cs
│ │ │ ├── MainWindow.g.i.cs
│ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ └── packages.config
├── LiveChartSample.sln
└── packages
│ ├── LiveCharts.0.9.7
│ ├── LiveCharts.0.9.7.nupkg
│ ├── lib
│ │ ├── net40
│ │ │ ├── LiveCharts.dll
│ │ │ ├── LiveCharts.pdb
│ │ │ └── LiveCharts.xml
│ │ ├── net45
│ │ │ ├── LiveCharts.dll
│ │ │ ├── LiveCharts.pdb
│ │ │ └── LiveCharts.xml
│ │ └── portable-net45+win8+wp8
│ │ │ ├── LiveCharts.XML
│ │ │ ├── LiveCharts.dll
│ │ │ └── LiveCharts.pdb
│ └── readme.txt
│ └── LiveCharts.Wpf.0.9.7
│ ├── LiveCharts.Wpf.0.9.7.nupkg
│ ├── lib
│ ├── net40
│ │ ├── LiveCharts.Wpf.XML
│ │ ├── LiveCharts.Wpf.dll
│ │ └── LiveCharts.Wpf.pdb
│ └── net45
│ │ ├── LiveCharts.Wpf.XML
│ │ ├── LiveCharts.Wpf.dll
│ │ └── LiveCharts.Wpf.pdb
│ └── tools
│ └── install.ps1
├── Npoi_Sample
├── Npoi_Sample.sln
└── Npoi_Sample
│ ├── App.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── ExcelHelper.cs
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── Npoi_Sample.csproj
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── bin
│ └── Debug
│ │ ├── NPOI.dll
│ │ ├── Npoi_Sample.exe
│ │ ├── Npoi_Sample.exe.config
│ │ └── Npoi_Sample.pdb
│ └── obj
│ └── Debug
│ ├── App.g.cs
│ ├── App.g.i.cs
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── MainWindow.baml
│ ├── MainWindow.g.cs
│ ├── MainWindow.g.i.cs
│ ├── Npoi_Sample.Properties.Resources.resources
│ ├── Npoi_Sample.csproj.CopyComplete
│ ├── Npoi_Sample.csproj.CoreCompileInputs.cache
│ ├── Npoi_Sample.csproj.FileListAbsolute.txt
│ ├── Npoi_Sample.csproj.GenerateResource.cache
│ ├── Npoi_Sample.csprojAssemblyReference.cache
│ ├── Npoi_Sample.exe
│ ├── Npoi_Sample.g.resources
│ ├── Npoi_Sample.pdb
│ ├── Npoi_Sample_MarkupCompile.cache
│ ├── Npoi_Sample_MarkupCompile.i.cache
│ ├── Npoi_Sample_MarkupCompile.lref
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
├── OutlookDemo
├── WpfApp4.sln
└── WpfApp4
│ ├── App.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── WpfApp4.csproj
│ ├── bin
│ └── Debug
│ │ ├── WpfApp4.exe
│ │ ├── WpfApp4.exe.config
│ │ └── WpfApp4.pdb
│ ├── iconfont.ttf
│ └── obj
│ └── Debug
│ ├── App.g.cs
│ ├── App.g.i.cs
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── MainWindow.baml
│ ├── MainWindow.g.cs
│ ├── MainWindow.g.i.cs
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── WpfApp4.Properties.Resources.resources
│ ├── WpfApp4.csproj.CoreCompileInputs.cache
│ ├── WpfApp4.csproj.FileListAbsolute.txt
│ ├── WpfApp4.csproj.GenerateResource.cache
│ ├── WpfApp4.csprojAssemblyReference.cache
│ ├── WpfApp4.exe
│ ├── WpfApp4.g.resources
│ ├── WpfApp4.pdb
│ ├── WpfApp4_MarkupCompile.cache
│ ├── WpfApp4_MarkupCompile.i.cache
│ └── WpfApp4_MarkupCompile.lref
├── README.md
├── Wpf.MqttNetTest
├── .vs
│ └── Wpf.MqttNetTest
│ │ ├── DesignTimeBuild
│ │ └── .dtbcache
│ │ ├── v15
│ │ └── .suo
│ │ └── v16
│ │ ├── .suo
│ │ └── Server
│ │ └── sqlite3
│ │ ├── db.lock
│ │ └── storage.ide
├── Wpf.MqttNetClient
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── AssemblyInfo.cs
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── Wpf.MqttNetClient.csproj
│ ├── Wpf.MqttNetClient.csproj.user
│ └── obj
│ │ ├── Debug
│ │ └── netcoreapp3.1
│ │ │ ├── App.g.i.cs
│ │ │ ├── MainWindow.g.i.cs
│ │ │ ├── Wpf.MqttNetClient.assets.cache
│ │ │ ├── Wpf.MqttNetClient.csproj.FileListAbsolute.txt
│ │ │ ├── Wpf.MqttNetClient.designer.deps.json
│ │ │ ├── Wpf.MqttNetClient.designer.runtimeconfig.json
│ │ │ ├── Wpf.MqttNetClient.exe
│ │ │ └── Wpf.MqttNetClient_MarkupCompile.i.cache
│ │ ├── Wpf.MqttNetClient.csproj.nuget.dgspec.json
│ │ ├── Wpf.MqttNetClient.csproj.nuget.g.props
│ │ ├── Wpf.MqttNetClient.csproj.nuget.g.targets
│ │ └── project.assets.json
├── Wpf.MqttNetTest.sln
└── Wpf.MqttNetTest
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── AssemblyInfo.cs
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── UserInstance.cs
│ ├── Wpf.MqttNetTest.csproj
│ ├── Wpf.MqttNetTest.csproj.user
│ └── obj
│ ├── Debug
│ └── netcoreapp3.1
│ │ ├── App.g.i.cs
│ │ ├── MainWindow.g.i.cs
│ │ ├── Wpf.MqttNetTest.assets.cache
│ │ ├── Wpf.MqttNetTest.csproj.FileListAbsolute.txt
│ │ ├── Wpf.MqttNetTest.designer.deps.json
│ │ ├── Wpf.MqttNetTest.designer.runtimeconfig.json
│ │ ├── Wpf.MqttNetTest.exe
│ │ └── Wpf.MqttNetTest_MarkupCompile.i.cache
│ ├── Wpf.MqttNetTest.csproj.nuget.dgspec.json
│ ├── Wpf.MqttNetTest.csproj.nuget.g.props
│ ├── Wpf.MqttNetTest.csproj.nuget.g.targets
│ └── project.assets.json
└── WpfAnimationTest
├── WpfAnimationTest.sln
└── WpfAnimationTest
├── App.config
├── App.xaml
├── App.xaml.cs
├── MainWindow.xaml
├── MainWindow.xaml.cs
├── Properties
├── AssemblyInfo.cs
├── Resources.Designer.cs
├── Resources.resx
├── Settings.Designer.cs
└── Settings.settings
├── WpfAnimationTest.csproj
└── obj
└── Debug
├── App.g.cs
├── App.g.i.cs
├── DesignTimeResolveAssemblyReferences.cache
├── DesignTimeResolveAssemblyReferencesInput.cache
├── MainWindow.g.cs
├── MainWindow.g.i.cs
├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
├── WpfAnimationTest.csproj.CoreCompileInputs.cache
├── WpfAnimationTest.csprojAssemblyReference.cache
├── WpfAnimationTest_MarkupCompile.cache
├── WpfAnimationTest_MarkupCompile.i.cache
├── WpfAnimationTest_MarkupCompile.i.lref
└── WpfAnimationTest_MarkupCompile.lref
/AspNetCoreJwtDemo/AspNetCoreJwtDemo.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.29613.14
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetCoreJwtDemo", "AspNetCoreJwtDemo\AspNetCoreJwtDemo.csproj", "{A4E397C2-E31E-4D9F-86C5-C1498352567A}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {A4E397C2-E31E-4D9F-86C5-C1498352567A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {A4E397C2-E31E-4D9F-86C5-C1498352567A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {A4E397C2-E31E-4D9F-86C5-C1498352567A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {A4E397C2-E31E-4D9F-86C5-C1498352567A}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {466836A8-FB53-4FAC-BA43-6F820E1DDD09}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/AspNetCoreJwtDemo.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp3.1
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/AspNetCoreJwtDemo.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ApiControllerEmptyScaffolder
5 | root/Controller
6 | 600
7 | True
8 | False
9 | True
10 |
11 | False
12 |
13 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/Controllers/AuthenticationController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using Microsoft.AspNetCore.Authorization;
6 | using Microsoft.AspNetCore.Http;
7 | using Microsoft.AspNetCore.Mvc;
8 |
9 | namespace AspNetCoreJwtDemo.Controllers
10 | {
11 | [Route("api/[controller]")]
12 | [ApiController]
13 | public class AuthenticationController : ControllerBase
14 | {
15 | private readonly IAuthenticateService _authService;
16 | public AuthenticationController(IAuthenticateService authService)
17 | {
18 | this._authService = authService;
19 | }
20 |
21 | [AllowAnonymous]
22 | [HttpPost, Route("requestToken")]
23 | public ActionResult RequestToken([FromBody] LoginRequestDTO request)
24 | {
25 | if (!ModelState.IsValid)
26 | {
27 | return BadRequest("Invalid Request");
28 | }
29 |
30 | string token;
31 | if (_authService.IsAuthenticated(request, out token))
32 | {
33 | return Ok(token);
34 | }
35 |
36 | return BadRequest("Invalid Request");
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/Controllers/WeatherForecastController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using Microsoft.AspNetCore.Authorization;
6 | using Microsoft.AspNetCore.Mvc;
7 | using Microsoft.Extensions.Logging;
8 |
9 | namespace AspNetCoreJwtDemo.Controllers
10 | {
11 | [ApiController]
12 | [Route("[controller]")]
13 | [Authorize]
14 | public class WeatherForecastController : ControllerBase
15 | {
16 | private static readonly string[] Summaries = new[]
17 | {
18 | "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
19 | };
20 |
21 | private readonly ILogger _logger;
22 |
23 | public WeatherForecastController(ILogger logger)
24 | {
25 | _logger = logger;
26 | }
27 |
28 | [HttpGet]
29 | public IEnumerable Get()
30 | {
31 | var rng = new Random();
32 | return Enumerable.Range(1, 5).Select(index => new WeatherForecast
33 | {
34 | Date = DateTime.Now.AddDays(index),
35 | TemperatureC = rng.Next(-20, 55),
36 | Summary = Summaries[rng.Next(Summaries.Length)]
37 | })
38 | .ToArray();
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/IAuthenticateService.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Extensions.Options;
2 | using Microsoft.IdentityModel.Tokens;
3 | using Newtonsoft.Json;
4 | using System;
5 | using System.Collections.Generic;
6 | using System.ComponentModel.DataAnnotations;
7 | using System.IdentityModel.Tokens.Jwt;
8 | using System.Linq;
9 | using System.Security.Claims;
10 | using System.Text;
11 | using System.Threading.Tasks;
12 |
13 | namespace AspNetCoreJwtDemo
14 | {
15 | public class LoginRequestDTO
16 | {
17 | [Required]
18 | [JsonProperty("username")]
19 | public string Username { get; set; }
20 |
21 |
22 | [Required]
23 | [JsonProperty("password")]
24 | public string Password { get; set; }
25 | }
26 |
27 | public interface IAuthenticateService
28 | {
29 | bool IsAuthenticated(LoginRequestDTO request, out string token);
30 | }
31 |
32 | public class TokenAuthenticationService : IAuthenticateService
33 | {
34 | private readonly IUserService _userService;
35 | private readonly TokenManagement _tokenManagement;
36 | public TokenAuthenticationService(IUserService userService, IOptions tokenManagement)
37 | {
38 | _userService = userService;
39 | _tokenManagement = tokenManagement.Value;
40 | }
41 | public bool IsAuthenticated(LoginRequestDTO request, out string token)
42 | {
43 | token = string.Empty;
44 | if (!_userService.IsValid(request))
45 | return false;
46 | var claims = new[]
47 | {
48 | new Claim(ClaimTypes.Name,request.Username)
49 | };
50 | var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_tokenManagement.Secret));
51 | var credentials = new SigningCredentials(key, SecurityAlgorithms.HmacSha256);
52 | var jwtToken = new JwtSecurityToken(_tokenManagement.Issuer, _tokenManagement.Audience, claims,
53 | expires: DateTime.Now.AddMinutes(_tokenManagement.AccessExpiration),
54 | signingCredentials: credentials);
55 | token = new JwtSecurityTokenHandler().WriteToken(jwtToken);
56 | return true;
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/IUserService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 |
6 | namespace AspNetCoreJwtDemo
7 | {
8 | public interface IUserService
9 | {
10 | bool IsValid(LoginRequestDTO req);
11 | }
12 |
13 | public class UserService : IUserService
14 | {
15 | //模拟测试,默认都是人为验证有效
16 | public bool IsValid(LoginRequestDTO req)
17 | {
18 | return true;
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using Microsoft.AspNetCore.Hosting;
6 | using Microsoft.Extensions.Configuration;
7 | using Microsoft.Extensions.Hosting;
8 | using Microsoft.Extensions.Logging;
9 |
10 | namespace AspNetCoreJwtDemo
11 | {
12 | public class Program
13 | {
14 | public static void Main(string[] args)
15 | {
16 | CreateHostBuilder(args).Build().Run();
17 | }
18 |
19 | public static IHostBuilder CreateHostBuilder(string[] args) =>
20 | Host.CreateDefaultBuilder(args)
21 | .ConfigureWebHostDefaults(webBuilder =>
22 | {
23 | webBuilder.UseStartup();
24 | });
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json.schemastore.org/launchsettings.json",
3 | "iisSettings": {
4 | "windowsAuthentication": false,
5 | "anonymousAuthentication": true,
6 | "iisExpress": {
7 | "applicationUrl": "http://localhost:5181",
8 | "sslPort": 0
9 | }
10 | },
11 | "profiles": {
12 | "IIS Express": {
13 | "commandName": "IISExpress",
14 | "launchBrowser": true,
15 | "launchUrl": "weatherforecast",
16 | "environmentVariables": {
17 | "ASPNETCORE_ENVIRONMENT": "Development"
18 | }
19 | },
20 | "AspNetCoreJwtDemo": {
21 | "commandName": "Project",
22 | "launchBrowser": true,
23 | "launchUrl": "weatherforecast",
24 | "applicationUrl": "http://localhost:5000",
25 | "environmentVariables": {
26 | "ASPNETCORE_ENVIRONMENT": "Development"
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/Startup.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/Startup.cs
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/TokenManagement.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Threading.Tasks;
6 |
7 | namespace AspNetCoreJwtDemo
8 | {
9 | public class TokenManagement
10 | {
11 | [JsonProperty("secret")]
12 | public string Secret { get; set; }
13 |
14 | [JsonProperty("issuer")]
15 | public string Issuer { get; set; }
16 |
17 | [JsonProperty("audience")]
18 | public string Audience { get; set; }
19 |
20 | [JsonProperty("accessExpiration")]
21 | public int AccessExpiration { get; set; }
22 |
23 | [JsonProperty("refreshExpiration")]
24 | public int RefreshExpiration { get; set; }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/WeatherForecast.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace AspNetCoreJwtDemo
4 | {
5 | public class WeatherForecast
6 | {
7 | public DateTime Date { get; set; }
8 |
9 | public int TemperatureC { get; set; }
10 |
11 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
12 |
13 | public string Summary { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | },
9 | "tokenConfig": {
10 | "secret": "123456789123456789",
11 | "issuer": "test.cn",
12 | "audience": "test",
13 | "accessExpiration": 30,
14 | "refreshExpiration": 60
15 | },
16 | "AllowedHosts": "*"
17 | }
18 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/AspNetCoreJwtDemo.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/AspNetCoreJwtDemo.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/AspNetCoreJwtDemo.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/AspNetCoreJwtDemo.exe
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/AspNetCoreJwtDemo.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/AspNetCoreJwtDemo.pdb
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/AspNetCoreJwtDemo.runtimeconfig.dev.json:
--------------------------------------------------------------------------------
1 | {
2 | "runtimeOptions": {
3 | "additionalProbingPaths": [
4 | "C:\\Users\\zhouh\\.dotnet\\store\\|arch|\\|tfm|",
5 | "C:\\Users\\zhouh\\.nuget\\packages",
6 | "C:\\Microsoft\\Xamarin\\NuGet",
7 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
8 | ]
9 | }
10 | }
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/AspNetCoreJwtDemo.runtimeconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "runtimeOptions": {
3 | "tfm": "netcoreapp3.1",
4 | "framework": {
5 | "name": "Microsoft.AspNetCore.App",
6 | "version": "3.1.0"
7 | },
8 | "configProperties": {
9 | "System.GC.Server": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Authentication.JwtBearer.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Authentication.JwtBearer.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Razor.Language.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.AspNetCore.Razor.Language.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.CSharp.Workspaces.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.CSharp.Workspaces.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.CSharp.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.CSharp.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.Razor.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.Razor.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.Workspaces.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.Workspaces.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.CodeAnalysis.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.JsonWebTokens.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.JsonWebTokens.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Logging.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Logging.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Protocols.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Tokens.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.IdentityModel.Tokens.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.Contracts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.Contracts.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.Core.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.Templating.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.Templating.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.Utils.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.Utils.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGeneration.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGenerators.Mvc.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.Web.CodeGenerators.Mvc.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/NuGet.Frameworks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/NuGet.Frameworks.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json.schemastore.org/launchsettings.json",
3 | "iisSettings": {
4 | "windowsAuthentication": false,
5 | "anonymousAuthentication": true,
6 | "iisExpress": {
7 | "applicationUrl": "http://localhost:5181",
8 | "sslPort": 0
9 | }
10 | },
11 | "profiles": {
12 | "IIS Express": {
13 | "commandName": "IISExpress",
14 | "launchBrowser": true,
15 | "launchUrl": "weatherforecast",
16 | "environmentVariables": {
17 | "ASPNETCORE_ENVIRONMENT": "Development"
18 | }
19 | },
20 | "AspNetCoreJwtDemo": {
21 | "commandName": "Project",
22 | "launchBrowser": true,
23 | "launchUrl": "weatherforecast",
24 | "applicationUrl": "http://localhost:5000",
25 | "environmentVariables": {
26 | "ASPNETCORE_ENVIRONMENT": "Development"
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.AttributedModel.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.AttributedModel.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.Convention.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.Convention.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.Hosting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.Hosting.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.Runtime.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.Runtime.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.TypedParts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.Composition.TypedParts.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.IdentityModel.Tokens.Jwt.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/System.IdentityModel.Tokens.Jwt.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | },
9 | "tokenConfig": {
10 | "secret": "123456789123456789",
11 | "issuer": "test.cn",
12 | "audience": "test",
13 | "accessExpiration": 30,
14 | "refreshExpiration": 60
15 | },
16 | "AllowedHosts": "*"
17 | }
18 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/cs/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/cs/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/cs/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/cs/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/de/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/de/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/de/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/de/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/de/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/de/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/dotnet-aspnet-codegenerator-design.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/dotnet-aspnet-codegenerator-design.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/es/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/es/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/es/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/es/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/es/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/es/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/fr/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/fr/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/fr/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/fr/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/it/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/it/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/it/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/it/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/it/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/it/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ja/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ja/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ja/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ja/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ko/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ko/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ko/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ko/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pl/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pl/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pl/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pl/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/pt-BR/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ru/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ru/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ru/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/ru/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/tr/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/tr/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/tr/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/tr/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hans/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hans/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hant/Microsoft.CodeAnalysis.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/bin/Debug/netcoreapp3.1/zh-Hant/Microsoft.CodeAnalysis.resources.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/AspNetCoreJwtDemo.csproj.nuget.cache:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "dgSpecHash": "iPVSVes9i13BTk+iTdk7rdO0DHj5WorRH+rPWYh+3IHAr3Z+5ojfeb3YOyooyWIYOEls22eEFFundd9tUZI2mA==",
4 | "success": true
5 | }
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/AspNetCoreJwtDemo.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\zhouh\\source\\repos\\AspNetCoreJwtDemo\\AspNetCoreJwtDemo\\AspNetCoreJwtDemo.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\zhouh\\source\\repos\\AspNetCoreJwtDemo\\AspNetCoreJwtDemo\\AspNetCoreJwtDemo.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\zhouh\\source\\repos\\AspNetCoreJwtDemo\\AspNetCoreJwtDemo\\AspNetCoreJwtDemo.csproj",
11 | "projectName": "AspNetCoreJwtDemo",
12 | "projectPath": "C:\\Users\\zhouh\\source\\repos\\AspNetCoreJwtDemo\\AspNetCoreJwtDemo\\AspNetCoreJwtDemo.csproj",
13 | "packagesPath": "C:\\Users\\zhouh\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\zhouh\\source\\repos\\AspNetCoreJwtDemo\\AspNetCoreJwtDemo\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "fallbackFolders": [
17 | "C:\\Microsoft\\Xamarin\\NuGet\\",
18 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
19 | ],
20 | "configFilePaths": [
21 | "C:\\Users\\zhouh\\AppData\\Roaming\\NuGet\\NuGet.Config",
22 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
23 | "C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
24 | ],
25 | "originalTargetFrameworks": [
26 | "netcoreapp3.1"
27 | ],
28 | "sources": {
29 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
30 | "https://api.nuget.org/v3/index.json": {}
31 | },
32 | "frameworks": {
33 | "netcoreapp3.1": {
34 | "projectReferences": {}
35 | }
36 | },
37 | "warningProperties": {
38 | "warnAsError": [
39 | "NU1605"
40 | ]
41 | }
42 | },
43 | "frameworks": {
44 | "netcoreapp3.1": {
45 | "dependencies": {
46 | "Microsoft.AspNetCore.Authentication.JwtBearer": {
47 | "target": "Package",
48 | "version": "[3.1.1, )"
49 | },
50 | "Microsoft.VisualStudio.Web.CodeGeneration.Design": {
51 | "target": "Package",
52 | "version": "[3.1.1, )"
53 | }
54 | },
55 | "imports": [
56 | "net461",
57 | "net462",
58 | "net47",
59 | "net471",
60 | "net472",
61 | "net48"
62 | ],
63 | "assetTargetFallback": true,
64 | "warn": true,
65 | "frameworkReferences": {
66 | "Microsoft.AspNetCore.App": {
67 | "privateAssets": "none"
68 | },
69 | "Microsoft.NETCore.App": {
70 | "privateAssets": "all"
71 | }
72 | },
73 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.100\\RuntimeIdentifierGraph.json"
74 | }
75 | }
76 | }
77 | }
78 | }
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/AspNetCoreJwtDemo.csproj.nuget.g.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | True
5 | NuGet
6 | $(MSBuildThisFileDirectory)project.assets.json
7 | $(UserProfile)\.nuget\packages\
8 | C:\Users\zhouh\.nuget\packages\;C:\Microsoft\Xamarin\NuGet\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder
9 | PackageReference
10 | 5.4.0
11 |
12 |
13 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
14 |
15 |
16 | C:\Users\zhouh\.nuget\packages\microsoft.codeanalysis.analyzers\2.9.4
17 |
18 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/AspNetCoreJwtDemo.csproj.nuget.g.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 |
6 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: System.Reflection.AssemblyCompanyAttribute("AspNetCoreJwtDemo")]
15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
18 | [assembly: System.Reflection.AssemblyProductAttribute("AspNetCoreJwtDemo")]
19 | [assembly: System.Reflection.AssemblyTitleAttribute("AspNetCoreJwtDemo")]
20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
21 |
22 | // 由 MSBuild WriteCodeFragment 类生成。
23 |
24 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | 612aee6aa29bb9e3dfca21978ff593dfccf3fc0e
2 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.MvcApplicationPartsAssemblyInfo.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.MvcApplicationPartsAssemblyInfo.cache
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.RazorTargetAssemblyInfo.cache:
--------------------------------------------------------------------------------
1 | a12a44b9ca41fbd520667c73efef057d12b8444e
2 |
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.assets.cache
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.csproj.CopyComplete:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.csproj.CopyComplete
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.dll
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.exe
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/AspNetCoreJwtDemo.pdb
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/staticwebassets/AspNetCoreJwtDemo.StaticWebAssets.Manifest.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/staticwebassets/AspNetCoreJwtDemo.StaticWebAssets.Manifest.cache
--------------------------------------------------------------------------------
/AspNetCoreJwtDemo/AspNetCoreJwtDemo/obj/Debug/netcoreapp3.1/staticwebassets/AspNetCoreJwtDemo.StaticWebAssets.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/HEAD:
--------------------------------------------------------------------------------
1 | ref: refs/heads/master
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 henjigg
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace LiveChartApp
10 | {
11 | ///
12 | /// App.xaml 的交互逻辑
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // 有关程序集的一般信息由以下
8 | // 控制。更改这些特性值可修改
9 | // 与程序集关联的信息。
10 | [assembly: AssemblyTitle("LiveChartApp")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("LiveChartApp")]
15 | [assembly: AssemblyCopyright("Copyright © 2019")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // 将 ComVisible 设置为 false 会使此程序集中的类型
20 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
21 | //请将此类型的 ComVisible 特性设置为 true。
22 | [assembly: ComVisible(false)]
23 |
24 | //若要开始生成可本地化的应用程序,请设置
25 | //.csproj 文件中的 CultureYouAreCodingWith
26 | //例如,如果您在源文件中使用的是美国英语,
27 | //使用的是美国英语,请将 设置为 en-US。 然后取消
28 | //对以下 NeutralResourceLanguage 特性的注释。 更新
29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置
36 | //(未在页面中找到资源时使用,
37 | //或应用程序资源字典中找到时使用)
38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
39 | //(未在页面中找到资源时使用,
40 | //、应用程序或任何主题专用资源字典中找到时使用)
41 | )]
42 |
43 |
44 | // 程序集的版本信息由下列四个值组成:
45 | //
46 | // 主版本
47 | // 次版本
48 | // 生成号
49 | // 修订号
50 | //
51 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
52 | // 方法是按如下所示使用“*”: :
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本: 4.0.30319.42000
5 | //
6 | // 对此文件的更改可能导致不正确的行为,如果
7 | // 重新生成代码,则所做更改将丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace LiveChartApp.Properties
12 | {
13 |
14 |
15 | ///
16 | /// 强类型资源类,用于查找本地化字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// 返回此类使用的缓存 ResourceManager 实例。
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("LiveChartApp.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// 覆盖当前线程的 CurrentUICulture 属性
56 | /// 使用此强类型的资源类的资源查找。
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace LiveChartApp.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/bin/Debug/LiveChartApp.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/bin/Debug/LiveChartApp.exe
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/bin/Debug/LiveChartApp.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/bin/Debug/LiveChartApp.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/bin/Debug/LiveChartApp.pdb
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/bin/Debug/LiveCharts.Wpf.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/bin/Debug/LiveCharts.Wpf.dll
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/bin/Debug/LiveCharts.Wpf.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/bin/Debug/LiveCharts.Wpf.pdb
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/bin/Debug/LiveCharts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/bin/Debug/LiveCharts.dll
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/bin/Debug/LiveCharts.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/bin/Debug/LiveCharts.pdb
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/App.g.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "244A81FAD9E60D48B464B6131AC4053B5BFABF8B"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using LiveChartApp;
13 | using System;
14 | using System.Diagnostics;
15 | using System.Windows;
16 | using System.Windows.Automation;
17 | using System.Windows.Controls;
18 | using System.Windows.Controls.Primitives;
19 | using System.Windows.Data;
20 | using System.Windows.Documents;
21 | using System.Windows.Ink;
22 | using System.Windows.Input;
23 | using System.Windows.Markup;
24 | using System.Windows.Media;
25 | using System.Windows.Media.Animation;
26 | using System.Windows.Media.Effects;
27 | using System.Windows.Media.Imaging;
28 | using System.Windows.Media.Media3D;
29 | using System.Windows.Media.TextFormatting;
30 | using System.Windows.Navigation;
31 | using System.Windows.Shapes;
32 | using System.Windows.Shell;
33 |
34 |
35 | namespace LiveChartApp {
36 |
37 |
38 | ///
39 | /// App
40 | ///
41 | public partial class App : System.Windows.Application {
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 |
50 | #line 5 "..\..\App.xaml"
51 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
52 |
53 | #line default
54 | #line hidden
55 | }
56 |
57 | ///
58 | /// Application Entry Point.
59 | ///
60 | [System.STAThreadAttribute()]
61 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
62 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
63 | public static void Main() {
64 | LiveChartApp.App app = new LiveChartApp.App();
65 | app.InitializeComponent();
66 | app.Run();
67 | }
68 | }
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/App.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "244A81FAD9E60D48B464B6131AC4053B5BFABF8B"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using LiveChartApp;
13 | using System;
14 | using System.Diagnostics;
15 | using System.Windows;
16 | using System.Windows.Automation;
17 | using System.Windows.Controls;
18 | using System.Windows.Controls.Primitives;
19 | using System.Windows.Data;
20 | using System.Windows.Documents;
21 | using System.Windows.Ink;
22 | using System.Windows.Input;
23 | using System.Windows.Markup;
24 | using System.Windows.Media;
25 | using System.Windows.Media.Animation;
26 | using System.Windows.Media.Effects;
27 | using System.Windows.Media.Imaging;
28 | using System.Windows.Media.Media3D;
29 | using System.Windows.Media.TextFormatting;
30 | using System.Windows.Navigation;
31 | using System.Windows.Shapes;
32 | using System.Windows.Shell;
33 |
34 |
35 | namespace LiveChartApp {
36 |
37 |
38 | ///
39 | /// App
40 | ///
41 | public partial class App : System.Windows.Application {
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 |
50 | #line 5 "..\..\App.xaml"
51 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
52 |
53 | #line default
54 | #line hidden
55 | }
56 |
57 | ///
58 | /// Application Entry Point.
59 | ///
60 | [System.STAThreadAttribute()]
61 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
62 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
63 | public static void Main() {
64 | LiveChartApp.App app = new LiveChartApp.App();
65 | app.InitializeComponent();
66 | app.Run();
67 | }
68 | }
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.Properties.Resources.resources
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.csproj.CopyComplete:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.csproj.CopyComplete
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 1feffb32ffa60e076d23949fea70e0b2e2445ead
2 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\bin\Debug\LiveChartApp.exe.config
2 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\bin\Debug\LiveChartApp.exe
3 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\bin\Debug\LiveChartApp.pdb
4 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\bin\Debug\LiveCharts.dll
5 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\bin\Debug\LiveCharts.Wpf.dll
6 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\bin\Debug\LiveCharts.pdb
7 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\bin\Debug\LiveCharts.xml
8 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\bin\Debug\LiveCharts.Wpf.pdb
9 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\bin\Debug\LiveCharts.Wpf.xml
10 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp.csprojAssemblyReference.cache
11 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\MainWindow.g.cs
12 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\App.g.cs
13 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp_MarkupCompile.cache
14 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp_MarkupCompile.lref
15 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\MainWindow.baml
16 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp.g.resources
17 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp.Properties.Resources.resources
18 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp.csproj.GenerateResource.cache
19 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp.csproj.CoreCompileInputs.cache
20 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp.csproj.CopyComplete
21 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp.exe
22 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\LiveChartApp.pdb
23 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.csproj.GenerateResource.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.csproj.GenerateResource.cache
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.exe
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.g.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.g.resources
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp.pdb
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp_MarkupCompile.cache:
--------------------------------------------------------------------------------
1 | LiveChartApp
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\
8 | LiveChartApp
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\App.xaml
13 | 11151548125
14 |
15 | 5-2017746502
16 | 15795469439
17 | MainWindow.xaml;
18 |
19 | False
20 |
21 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp_MarkupCompile.i.cache:
--------------------------------------------------------------------------------
1 | LiveChartApp
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\obj\Debug\
8 | LiveChartApp
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\App.xaml
13 | 11151548125
14 |
15 | 9406997725
16 | 15795469439
17 | MainWindow.xaml;
18 |
19 | True
20 |
21 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp_MarkupCompile.i.lref:
--------------------------------------------------------------------------------
1 |
2 |
3 | FC:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\MainWindow.xaml;;
4 |
5 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/LiveChartApp_MarkupCompile.lref:
--------------------------------------------------------------------------------
1 |
2 |
3 | FC:\Users\zhouh\Desktop\C#视频\LiveChartSample\LiveChartApp\MainWindow.xaml;;
4 |
5 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/MainWindow.baml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/MainWindow.baml
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/LiveChartApp/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartApp/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/LiveChartSample/LiveChartSample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.572
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveChartApp", "LiveChartApp\LiveChartApp.csproj", "{92E30C55-65E0-4287-BB94-9C92E305126E}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {92E30C55-65E0-4287-BB94-9C92E305126E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {92E30C55-65E0-4287-BB94-9C92E305126E}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {92E30C55-65E0-4287-BB94-9C92E305126E}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {92E30C55-65E0-4287-BB94-9C92E305126E}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {43CC5134-F6E1-4BD7-903D-444A754F4DE9}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.0.9.7/LiveCharts.0.9.7.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.0.9.7/LiveCharts.0.9.7.nupkg
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.0.9.7/lib/net40/LiveCharts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.0.9.7/lib/net40/LiveCharts.dll
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.0.9.7/lib/net40/LiveCharts.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.0.9.7/lib/net40/LiveCharts.pdb
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.0.9.7/lib/net45/LiveCharts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.0.9.7/lib/net45/LiveCharts.dll
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.0.9.7/lib/net45/LiveCharts.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.0.9.7/lib/net45/LiveCharts.pdb
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.0.9.7/lib/portable-net45+win8+wp8/LiveCharts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.0.9.7/lib/portable-net45+win8+wp8/LiveCharts.dll
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.0.9.7/lib/portable-net45+win8+wp8/LiveCharts.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.0.9.7/lib/portable-net45+win8+wp8/LiveCharts.pdb
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.0.9.7/readme.txt:
--------------------------------------------------------------------------------
1 | ==================================
2 | <<<<<<<<<<< IMPORTANT >>>>>>>>>>>>
3 | ==================================
4 |
5 | LiveCharts is now multipatform (at least the design).
6 |
7 | So this package contains nothing but the core of the library,
8 | you might also need to install the desired platform.
9 |
10 | For example if using wpf you must also install the wpf package.
11 |
12 | ------------------------------------
13 | > Install-Package LiveCharts.Wpf
14 | ------------------------------------
15 |
16 | For future updates, you will only need to update LiveCharts.Wpf (or any other platform)
17 | forget about the core, all the platforms packages will have a dependency to core.
18 |
19 | ------------------------------------
20 | > Update-Package LiveCharts.Wpf
21 | ------------------------------------
22 |
23 | Happy coding!
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/LiveCharts.Wpf.0.9.7.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/LiveCharts.Wpf.0.9.7.nupkg
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/lib/net40/LiveCharts.Wpf.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/lib/net40/LiveCharts.Wpf.dll
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/lib/net40/LiveCharts.Wpf.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/lib/net40/LiveCharts.Wpf.pdb
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/lib/net45/LiveCharts.Wpf.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/lib/net45/LiveCharts.Wpf.dll
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/lib/net45/LiveCharts.Wpf.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/lib/net45/LiveCharts.Wpf.pdb
--------------------------------------------------------------------------------
/LiveChartSample/packages/LiveCharts.Wpf.0.9.7/tools/install.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | $DTE.ItemOperations.Navigate("https://lvcharts.net/thanks/wpf")
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.572
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Npoi_Sample", "Npoi_Sample\Npoi_Sample.csproj", "{43FB81CF-5659-4397-88DB-10D97B6AB748}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {43FB81CF-5659-4397-88DB-10D97B6AB748}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {43FB81CF-5659-4397-88DB-10D97B6AB748}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {43FB81CF-5659-4397-88DB-10D97B6AB748}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {43FB81CF-5659-4397-88DB-10D97B6AB748}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {08C702BD-E21E-416A-8C0D-8C1BDBE76BE3}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace Npoi_Sample
10 | {
11 | ///
12 | /// App.xaml 的交互逻辑
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/ExcelHelper.cs:
--------------------------------------------------------------------------------
1 | using NPOI.HSSF.UserModel;
2 | using NPOI.SS.UserModel;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.ComponentModel;
6 | using System.IO;
7 | using System.Linq;
8 | using System.Reflection;
9 | using System.Text;
10 | using System.Threading.Tasks;
11 |
12 | namespace Npoi_Sample
13 | {
14 | ///
15 | /// Excel帮助类
16 | ///
17 | ///
18 | public class ExcelHelper where T : class
19 | {
20 | ///
21 | /// 导出文件
22 | ///
23 | /// 文件名
24 | /// 导出的数据源
25 | public static void SaveXlsChangeds(string xlsName, List data)
26 | {
27 | IWorkbook workbook = new HSSFWorkbook();
28 | ISheet sheet = workbook.CreateSheet("Sheet1");
29 |
30 | var row = sheet.CreateRow(sheet.LastRowNum);
31 |
32 | //创建标题行
33 | int i = 0;
34 | PropertyInfo[] propertyInfos = typeof(T).GetProperties();
35 | foreach (var property in propertyInfos)
36 | {
37 | object[] objs = property.GetCustomAttributes(typeof(DescriptionAttribute), true);
38 | if (objs.Length > 0)
39 | {
40 | //创建一个列并且赋值
41 | row.CreateCell(i).SetCellValue(((DescriptionAttribute)objs[0]).Description);
42 | i++;
43 | }
44 | }
45 |
46 | //给数据填充到表格当中
47 | int j = sheet.LastRowNum + 1, n = 0;
48 | foreach (var item in data)
49 | {
50 | n = 0;
51 | row = sheet.CreateRow(j++);
52 | //获取一项的所有属性
53 | var itemProps = item.GetType().GetProperties();
54 | foreach (var itemPropSub in itemProps)
55 | {
56 | var objs = itemPropSub.GetCustomAttributes(typeof(DescriptionAttribute), true);
57 | if (objs.Length > 0)
58 | {
59 | row.CreateCell(n).SetCellValue(itemPropSub.GetValue(item, null) == null ? "" :
60 | itemPropSub.GetValue(item, null).ToString());
61 | n++;
62 | }
63 | }
64 | }
65 |
66 | MemoryStream ms = new MemoryStream();
67 |
68 | workbook.Write(ms);
69 | ms.Flush();
70 | ms.Position = 0;
71 | FileStream fileStream = new FileStream(xlsName, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite);
72 | ms.WriteTo(fileStream);
73 | ms.Close();
74 | ms.Dispose();
75 | fileStream.Close();
76 | workbook.Close();
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Win32;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.ComponentModel;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using System.Windows;
9 | using System.Windows.Controls;
10 | using System.Windows.Data;
11 | using System.Windows.Documents;
12 | using System.Windows.Input;
13 | using System.Windows.Media;
14 | using System.Windows.Media.Imaging;
15 | using System.Windows.Navigation;
16 | using System.Windows.Shapes;
17 |
18 | namespace Npoi_Sample
19 | {
20 | ///
21 | /// MainWindow.xaml 的交互逻辑
22 | ///
23 | public partial class MainWindow : Window
24 | {
25 | List stuLists = new List();
26 | public MainWindow()
27 | {
28 | InitializeComponent();
29 |
30 | for (int i = 0; i < 50; i++)
31 | {
32 | stuLists.Add(new Student()
33 | {
34 | Id = i.ToString(),
35 | Name = "A" + i,
36 | Address = $"朝阳路{i}号",
37 | Sex = "男",
38 | Tel = "110"
39 | });
40 | }
41 | gd.ItemsSource = stuLists;
42 | }
43 |
44 | private void Button_Click(object sender, RoutedEventArgs e)
45 | {
46 | SaveFileDialog dialog = new SaveFileDialog();
47 | dialog.Filter = "Excel表格(*.xls)|*.xls";
48 | if (dialog.ShowDialog() == true)
49 | {
50 | ExcelHelper.SaveXlsChangeds(dialog.FileName, stuLists);
51 | }
52 | }
53 | }
54 |
55 | public class Student
56 | {
57 | [Description("序号")]
58 | public string Id { get; set; }
59 |
60 | [Description("姓名")]
61 | public string Name { get; set; }
62 |
63 | [Description("性别")]
64 | public string Sex { get; set; }
65 |
66 | [Description("地址")]
67 | public string Address { get; set; }
68 |
69 | [Description("电话")]
70 | public string Tel { get; set; }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // 有关程序集的一般信息由以下
8 | // 控制。更改这些特性值可修改
9 | // 与程序集关联的信息。
10 | [assembly: AssemblyTitle("Npoi_Sample")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("Npoi_Sample")]
15 | [assembly: AssemblyCopyright("Copyright © 2019")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // 将 ComVisible 设置为 false 会使此程序集中的类型
20 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
21 | //请将此类型的 ComVisible 特性设置为 true。
22 | [assembly: ComVisible(false)]
23 |
24 | //若要开始生成可本地化的应用程序,请设置
25 | //.csproj 文件中的 CultureYouAreCodingWith
26 | //例如,如果您在源文件中使用的是美国英语,
27 | //使用的是美国英语,请将 设置为 en-US。 然后取消
28 | //对以下 NeutralResourceLanguage 特性的注释。 更新
29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置
36 | //(未在页面中找到资源时使用,
37 | //或应用程序资源字典中找到时使用)
38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
39 | //(未在页面中找到资源时使用,
40 | //、应用程序或任何主题专用资源字典中找到时使用)
41 | )]
42 |
43 |
44 | // 程序集的版本信息由下列四个值组成:
45 | //
46 | // 主版本
47 | // 次版本
48 | // 生成号
49 | // 修订号
50 | //
51 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
52 | // 方法是按如下所示使用“*”: :
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本: 4.0.30319.42000
5 | //
6 | // 对此文件的更改可能导致不正确的行为,如果
7 | // 重新生成代码,则所做更改将丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace Npoi_Sample.Properties
12 | {
13 |
14 |
15 | ///
16 | /// 强类型资源类,用于查找本地化字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// 返回此类使用的缓存 ResourceManager 实例。
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Npoi_Sample.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// 覆盖当前线程的 CurrentUICulture 属性
56 | /// 使用此强类型的资源类的资源查找。
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace Npoi_Sample.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/bin/Debug/NPOI.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/bin/Debug/NPOI.dll
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/bin/Debug/Npoi_Sample.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/bin/Debug/Npoi_Sample.exe
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/bin/Debug/Npoi_Sample.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/bin/Debug/Npoi_Sample.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/bin/Debug/Npoi_Sample.pdb
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/App.g.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1B48ECEBCD7AA6CA85EEC0CAB3EEE2D4B4D20D6E"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using Npoi_Sample;
13 | using System;
14 | using System.Diagnostics;
15 | using System.Windows;
16 | using System.Windows.Automation;
17 | using System.Windows.Controls;
18 | using System.Windows.Controls.Primitives;
19 | using System.Windows.Data;
20 | using System.Windows.Documents;
21 | using System.Windows.Ink;
22 | using System.Windows.Input;
23 | using System.Windows.Markup;
24 | using System.Windows.Media;
25 | using System.Windows.Media.Animation;
26 | using System.Windows.Media.Effects;
27 | using System.Windows.Media.Imaging;
28 | using System.Windows.Media.Media3D;
29 | using System.Windows.Media.TextFormatting;
30 | using System.Windows.Navigation;
31 | using System.Windows.Shapes;
32 | using System.Windows.Shell;
33 |
34 |
35 | namespace Npoi_Sample {
36 |
37 |
38 | ///
39 | /// App
40 | ///
41 | public partial class App : System.Windows.Application {
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 |
50 | #line 5 "..\..\App.xaml"
51 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
52 |
53 | #line default
54 | #line hidden
55 | }
56 |
57 | ///
58 | /// Application Entry Point.
59 | ///
60 | [System.STAThreadAttribute()]
61 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
62 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
63 | public static void Main() {
64 | Npoi_Sample.App app = new Npoi_Sample.App();
65 | app.InitializeComponent();
66 | app.Run();
67 | }
68 | }
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/App.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1B48ECEBCD7AA6CA85EEC0CAB3EEE2D4B4D20D6E"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using Npoi_Sample;
13 | using System;
14 | using System.Diagnostics;
15 | using System.Windows;
16 | using System.Windows.Automation;
17 | using System.Windows.Controls;
18 | using System.Windows.Controls.Primitives;
19 | using System.Windows.Data;
20 | using System.Windows.Documents;
21 | using System.Windows.Ink;
22 | using System.Windows.Input;
23 | using System.Windows.Markup;
24 | using System.Windows.Media;
25 | using System.Windows.Media.Animation;
26 | using System.Windows.Media.Effects;
27 | using System.Windows.Media.Imaging;
28 | using System.Windows.Media.Media3D;
29 | using System.Windows.Media.TextFormatting;
30 | using System.Windows.Navigation;
31 | using System.Windows.Shapes;
32 | using System.Windows.Shell;
33 |
34 |
35 | namespace Npoi_Sample {
36 |
37 |
38 | ///
39 | /// App
40 | ///
41 | public partial class App : System.Windows.Application {
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 |
50 | #line 5 "..\..\App.xaml"
51 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
52 |
53 | #line default
54 | #line hidden
55 | }
56 |
57 | ///
58 | /// Application Entry Point.
59 | ///
60 | [System.STAThreadAttribute()]
61 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
62 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
63 | public static void Main() {
64 | Npoi_Sample.App app = new Npoi_Sample.App();
65 | app.InitializeComponent();
66 | app.Run();
67 | }
68 | }
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/MainWindow.baml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/MainWindow.baml
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/MainWindow.g.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "40CC181C67B79CDE4E2C824C16CB16D475C1EF82"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using Npoi_Sample;
13 | using System;
14 | using System.Diagnostics;
15 | using System.Windows;
16 | using System.Windows.Automation;
17 | using System.Windows.Controls;
18 | using System.Windows.Controls.Primitives;
19 | using System.Windows.Data;
20 | using System.Windows.Documents;
21 | using System.Windows.Ink;
22 | using System.Windows.Input;
23 | using System.Windows.Markup;
24 | using System.Windows.Media;
25 | using System.Windows.Media.Animation;
26 | using System.Windows.Media.Effects;
27 | using System.Windows.Media.Imaging;
28 | using System.Windows.Media.Media3D;
29 | using System.Windows.Media.TextFormatting;
30 | using System.Windows.Navigation;
31 | using System.Windows.Shapes;
32 | using System.Windows.Shell;
33 |
34 |
35 | namespace Npoi_Sample {
36 |
37 |
38 | ///
39 | /// MainWindow
40 | ///
41 | public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
42 |
43 |
44 | #line 17 "..\..\MainWindow.xaml"
45 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
46 | internal System.Windows.Controls.DataGrid gd;
47 |
48 | #line default
49 | #line hidden
50 |
51 | private bool _contentLoaded;
52 |
53 | ///
54 | /// InitializeComponent
55 | ///
56 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
57 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
58 | public void InitializeComponent() {
59 | if (_contentLoaded) {
60 | return;
61 | }
62 | _contentLoaded = true;
63 | System.Uri resourceLocater = new System.Uri("/Npoi_Sample;component/mainwindow.xaml", System.UriKind.Relative);
64 |
65 | #line 1 "..\..\MainWindow.xaml"
66 | System.Windows.Application.LoadComponent(this, resourceLocater);
67 |
68 | #line default
69 | #line hidden
70 | }
71 |
72 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
73 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
74 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
75 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
76 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
77 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
78 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
79 | switch (connectionId)
80 | {
81 | case 1:
82 |
83 | #line 15 "..\..\MainWindow.xaml"
84 | ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
85 |
86 | #line default
87 | #line hidden
88 | return;
89 | case 2:
90 | this.gd = ((System.Windows.Controls.DataGrid)(target));
91 | return;
92 | }
93 | this._contentLoaded = true;
94 | }
95 | }
96 | }
97 |
98 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/MainWindow.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "40CC181C67B79CDE4E2C824C16CB16D475C1EF82"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using Npoi_Sample;
13 | using System;
14 | using System.Diagnostics;
15 | using System.Windows;
16 | using System.Windows.Automation;
17 | using System.Windows.Controls;
18 | using System.Windows.Controls.Primitives;
19 | using System.Windows.Data;
20 | using System.Windows.Documents;
21 | using System.Windows.Ink;
22 | using System.Windows.Input;
23 | using System.Windows.Markup;
24 | using System.Windows.Media;
25 | using System.Windows.Media.Animation;
26 | using System.Windows.Media.Effects;
27 | using System.Windows.Media.Imaging;
28 | using System.Windows.Media.Media3D;
29 | using System.Windows.Media.TextFormatting;
30 | using System.Windows.Navigation;
31 | using System.Windows.Shapes;
32 | using System.Windows.Shell;
33 |
34 |
35 | namespace Npoi_Sample {
36 |
37 |
38 | ///
39 | /// MainWindow
40 | ///
41 | public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
42 |
43 |
44 | #line 17 "..\..\MainWindow.xaml"
45 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
46 | internal System.Windows.Controls.DataGrid gd;
47 |
48 | #line default
49 | #line hidden
50 |
51 | private bool _contentLoaded;
52 |
53 | ///
54 | /// InitializeComponent
55 | ///
56 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
57 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
58 | public void InitializeComponent() {
59 | if (_contentLoaded) {
60 | return;
61 | }
62 | _contentLoaded = true;
63 | System.Uri resourceLocater = new System.Uri("/Npoi_Sample;component/mainwindow.xaml", System.UriKind.Relative);
64 |
65 | #line 1 "..\..\MainWindow.xaml"
66 | System.Windows.Application.LoadComponent(this, resourceLocater);
67 |
68 | #line default
69 | #line hidden
70 | }
71 |
72 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
73 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
74 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
75 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
76 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
77 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
78 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
79 | switch (connectionId)
80 | {
81 | case 1:
82 |
83 | #line 15 "..\..\MainWindow.xaml"
84 | ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
85 |
86 | #line default
87 | #line hidden
88 | return;
89 | case 2:
90 | this.gd = ((System.Windows.Controls.DataGrid)(target));
91 | return;
92 | }
93 | this._contentLoaded = true;
94 | }
95 | }
96 | }
97 |
98 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.Properties.Resources.resources
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.csproj.CopyComplete:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.csproj.CopyComplete
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 2da93e0174162cbd9dbafb95177fd17d94b9d54d
2 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\bin\Debug\Npoi_Sample.exe.config
2 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\bin\Debug\Npoi_Sample.exe
3 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\bin\Debug\Npoi_Sample.pdb
4 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample.csprojAssemblyReference.cache
5 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\MainWindow.g.cs
6 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\App.g.cs
7 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample_MarkupCompile.cache
8 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample_MarkupCompile.lref
9 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\MainWindow.baml
10 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample.g.resources
11 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample.Properties.Resources.resources
12 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample.csproj.GenerateResource.cache
13 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample.csproj.CoreCompileInputs.cache
14 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample.exe
15 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample.pdb
16 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\bin\Debug\NPOI.dll
17 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\Npoi_Sample.csproj.CopyComplete
18 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.csproj.GenerateResource.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.csproj.GenerateResource.cache
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.exe
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.g.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.g.resources
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample.pdb
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample_MarkupCompile.cache:
--------------------------------------------------------------------------------
1 | Npoi_Sample
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\
8 | Npoi_Sample
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\App.xaml
13 | 11151548125
14 |
15 | 6-1642711563
16 | 14860937427
17 | MainWindow.xaml;
18 |
19 | False
20 |
21 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample_MarkupCompile.i.cache:
--------------------------------------------------------------------------------
1 | Npoi_Sample
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\obj\Debug\
8 | Npoi_Sample
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\App.xaml
13 | 11151548125
14 |
15 | 10782032664
16 | 14860937427
17 | MainWindow.xaml;
18 |
19 | False
20 |
21 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/Npoi_Sample_MarkupCompile.lref:
--------------------------------------------------------------------------------
1 |
2 |
3 | FC:\Users\zhouh\Desktop\C#视频\Npoi_Sample\Npoi_Sample\MainWindow.xaml;;
4 |
5 |
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/Npoi_Sample/Npoi_Sample/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Npoi_Sample/Npoi_Sample/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.960
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfApp4", "WpfApp4\WpfApp4.csproj", "{8A1E969E-F935-4EC5-804C-A6948FD53AFB}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {8A1E969E-F935-4EC5-804C-A6948FD53AFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {8A1E969E-F935-4EC5-804C-A6948FD53AFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {8A1E969E-F935-4EC5-804C-A6948FD53AFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {8A1E969E-F935-4EC5-804C-A6948FD53AFB}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {956BD0D2-67CA-42B0-A119-569DD93653D0}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace WpfApp4
10 | {
11 | ///
12 | /// App.xaml 的交互逻辑
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Navigation;
14 | using System.Windows.Shapes;
15 |
16 | namespace WpfApp4
17 | {
18 | ///
19 | /// MainWindow.xaml 的交互逻辑
20 | ///
21 | public partial class MainWindow : Window
22 | {
23 | public MainWindow()
24 | {
25 | InitializeComponent();
26 | }
27 |
28 |
29 | private void Button_TouchMove(object sender, TouchEventArgs e)
30 | {
31 | var stackPanel = sender as StackPanel;
32 | var points = e.GetIntermediateTouchPoints(stackPanel);
33 | if (points.Count < 2) return;
34 | var frist_point = points.First();
35 | var last_point = points.Last();
36 | if (frist_point.Position.X == last_point.Position.X) return;
37 | var stackLength = stackPanel.Width;
38 | var length = frist_point.Position.X - last_point.Position.X;
39 | if (length > 0)//向左
40 | {
41 | var newrb_length = lb.Width - length;
42 | lb.Width = newrb_length > 0 ? newrb_length : 0;
43 |
44 | if (lb.Width == 0)
45 | rb.Width += length;
46 | }
47 | else //向右
48 | {
49 | var newrb_length = rb.Width + length;
50 | rb.Width = newrb_length > 0 ? newrb_length : 0;
51 |
52 | if (rb.Width == 0)
53 | lb.Width -= length;
54 | }
55 | element.Width = stackLength - rb.Width;
56 |
57 | if (rb.Width / stackLength > 0.4)
58 | {
59 | MessageBox.Show("已删除");
60 | }
61 | else if (lb.Width / stackLength > 0.4)
62 | {
63 | MessageBox.Show("已收藏");
64 | }
65 | }
66 |
67 | private void StackPanel_TouchLeave(object sender, TouchEventArgs e)
68 | {
69 | var stackPanel = sender as StackPanel;
70 | rb.Width = 0;
71 | lb.Width = 0;
72 | element.Width = stackPanel.Width;
73 | }
74 |
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // 有关程序集的一般信息由以下
8 | // 控制。更改这些特性值可修改
9 | // 与程序集关联的信息。
10 | [assembly: AssemblyTitle("WpfApp4")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("WpfApp4")]
15 | [assembly: AssemblyCopyright("Copyright © 2020")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // 将 ComVisible 设置为 false 会使此程序集中的类型
20 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
21 | //请将此类型的 ComVisible 特性设置为 true。
22 | [assembly: ComVisible(false)]
23 |
24 | //若要开始生成可本地化的应用程序,请设置
25 | //.csproj 文件中的 CultureYouAreCodingWith
26 | //例如,如果您在源文件中使用的是美国英语,
27 | //使用的是美国英语,请将 设置为 en-US。 然后取消
28 | //对以下 NeutralResourceLanguage 特性的注释。 更新
29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置
36 | //(未在页面中找到资源时使用,
37 | //或应用程序资源字典中找到时使用)
38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
39 | //(未在页面中找到资源时使用,
40 | //、应用程序或任何主题专用资源字典中找到时使用)
41 | )]
42 |
43 |
44 | // 程序集的版本信息由下列四个值组成:
45 | //
46 | // 主版本
47 | // 次版本
48 | // 生成号
49 | // 修订号
50 | //
51 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
52 | // 方法是按如下所示使用“*”: :
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本: 4.0.30319.42000
5 | //
6 | // 对此文件的更改可能导致不正确的行为,如果
7 | // 重新生成代码,则所做更改将丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WpfApp4.Properties
12 | {
13 |
14 |
15 | ///
16 | /// 强类型资源类,用于查找本地化字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// 返回此类使用的缓存 ResourceManager 实例。
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WpfApp4.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// 覆盖当前线程的 CurrentUICulture 属性
56 | /// 使用此强类型的资源类的资源查找。
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WpfApp4.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/bin/Debug/WpfApp4.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/bin/Debug/WpfApp4.exe
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/bin/Debug/WpfApp4.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/bin/Debug/WpfApp4.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/bin/Debug/WpfApp4.pdb
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/iconfont.ttf
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/App.g.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E9D597ED71B17DA54D2D0FE742419A7ED9D7437D"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 | using System.Windows.Shell;
32 | using WpfApp4;
33 |
34 |
35 | namespace WpfApp4 {
36 |
37 |
38 | ///
39 | /// App
40 | ///
41 | public partial class App : System.Windows.Application {
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 |
50 | #line 5 "..\..\App.xaml"
51 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
52 |
53 | #line default
54 | #line hidden
55 | }
56 |
57 | ///
58 | /// Application Entry Point.
59 | ///
60 | [System.STAThreadAttribute()]
61 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
62 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
63 | public static void Main() {
64 | WpfApp4.App app = new WpfApp4.App();
65 | app.InitializeComponent();
66 | app.Run();
67 | }
68 | }
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/App.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E9D597ED71B17DA54D2D0FE742419A7ED9D7437D"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 | using System.Windows.Shell;
32 | using WpfApp4;
33 |
34 |
35 | namespace WpfApp4 {
36 |
37 |
38 | ///
39 | /// App
40 | ///
41 | public partial class App : System.Windows.Application {
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 |
50 | #line 5 "..\..\App.xaml"
51 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
52 |
53 | #line default
54 | #line hidden
55 | }
56 |
57 | ///
58 | /// Application Entry Point.
59 | ///
60 | [System.STAThreadAttribute()]
61 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
62 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
63 | public static void Main() {
64 | WpfApp4.App app = new WpfApp4.App();
65 | app.InitializeComponent();
66 | app.Run();
67 | }
68 | }
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/MainWindow.baml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/MainWindow.baml
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.Properties.Resources.resources
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 83194ccd3dd5ffb342773af6bb81e2d83ccb9a6f
2 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\bin\Debug\WpfApp4.exe.config
2 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\bin\Debug\WpfApp4.exe
3 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\bin\Debug\WpfApp4.pdb
4 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\WpfApp4.csprojAssemblyReference.cache
5 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\MainWindow.g.cs
6 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\App.g.cs
7 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\WpfApp4_MarkupCompile.cache
8 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\WpfApp4_MarkupCompile.lref
9 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\MainWindow.baml
10 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\WpfApp4.g.resources
11 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\WpfApp4.Properties.Resources.resources
12 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\WpfApp4.csproj.GenerateResource.cache
13 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\WpfApp4.csproj.CoreCompileInputs.cache
14 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\WpfApp4.exe
15 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\WpfApp4.pdb
16 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.csproj.GenerateResource.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.csproj.GenerateResource.cache
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.exe
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.g.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.g.resources
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/OutlookDemo/WpfApp4/obj/Debug/WpfApp4.pdb
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4_MarkupCompile.cache:
--------------------------------------------------------------------------------
1 | WpfApp4
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\
8 | WpfApp4
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\App.xaml
13 | 11151548125
14 |
15 | 5-2017746502
16 | 13-1142990016
17 | MainWindow.xaml;
18 |
19 | False
20 |
21 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4_MarkupCompile.i.cache:
--------------------------------------------------------------------------------
1 | WpfApp4
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\obj\Debug\
8 | WpfApp4
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\zhouh\source\repos\WpfApp4\WpfApp4\App.xaml
13 | 11151548125
14 |
15 | 9406997725
16 | 13-1142990016
17 | MainWindow.xaml;
18 |
19 | False
20 |
21 |
--------------------------------------------------------------------------------
/OutlookDemo/WpfApp4/obj/Debug/WpfApp4_MarkupCompile.lref:
--------------------------------------------------------------------------------
1 |
2 |
3 | FC:\Users\zhouh\source\repos\WpfApp4\WpfApp4\MainWindow.xaml;;
4 |
5 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # bilibili站的视频教学源代码下载区
2 | # bilibili的视频地址: https://space.bilibili.com/32497462
3 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/DesignTimeBuild/.dtbcache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/DesignTimeBuild/.dtbcache
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/v15/.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/v15/.suo
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/v16/.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/v16/.suo
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/v16/Server/sqlite3/db.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/v16/Server/sqlite3/db.lock
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/v16/Server/sqlite3/storage.ide:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/.vs/Wpf.MqttNetTest/v16/Server/sqlite3/storage.ide
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace Wpf.MqttNetClient
10 | {
11 | ///
12 | /// Interaction logic for App.xaml
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | [assembly: ThemeInfo(
4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5 | //(used if a resource is not found in the page,
6 | // or application resource dictionaries)
7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8 | //(used if a resource is not found in the page,
9 | // app, or any theme specific resource dictionaries)
10 | )]
11 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using MQTTnet;
2 | using MQTTnet.Client;
3 | using MQTTnet.Client.Options;
4 | using System;
5 | using System.Collections.Generic;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows;
10 | using System.Windows.Controls;
11 | using System.Windows.Data;
12 | using System.Windows.Documents;
13 | using System.Windows.Input;
14 | using System.Windows.Media;
15 | using System.Windows.Media.Imaging;
16 | using System.Windows.Navigation;
17 | using System.Windows.Shapes;
18 |
19 | namespace Wpf.MqttNetClient
20 | {
21 | ///
22 | /// Interaction logic for MainWindow.xaml
23 | ///
24 | public partial class MainWindow : Window
25 | {
26 | IMqttClient client;
27 | string clientId = "";
28 | public MainWindow()
29 | {
30 | InitializeComponent();
31 | }
32 |
33 | private async void btnStart(object sender, RoutedEventArgs e)
34 | {
35 | clientId = Guid.NewGuid().ToString();
36 | var options = new MqttClientOptionsBuilder().WithTcpServer("127.0.0.1", 1883)
37 | .WithClientId(clientId).WithCredentials("admin", "123").Build();
38 |
39 | client = new MqttFactory().CreateMqttClient();
40 | client.UseConnectedHandler(async c =>
41 | {
42 | //订阅服务端消息
43 | await client.SubscribeAsync(new TopicFilterBuilder().WithTopic(clientId).Build());
44 | }).UseDisconnectedHandler(c =>
45 | {
46 | Showlog(c.Exception.Message);
47 | }).UseApplicationMessageReceivedHandler(c =>
48 | {
49 | string str = Encoding.UTF8.GetString(c.ApplicationMessage.Payload);
50 | Showlog(str);
51 | });
52 |
53 | await client.ConnectAsync(options);
54 | }
55 |
56 | private void brnSend(object sender, RoutedEventArgs e)
57 | {
58 | var msg = new MqttApplicationMessageBuilder().
59 | WithTopic("MyTopic").
60 | WithPayload($"{DateTime.Now}:Hello World")
61 | .WithExactlyOnceQoS().
62 | WithRetainFlag().
63 | Build();;
64 | client.PublishAsync(msg);
65 | }
66 |
67 | private void Showlog(string str)
68 | {
69 | this.Dispatcher.Invoke(() =>
70 | {
71 | txtResult.Text += str;
72 | });
73 | }
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/Wpf.MqttNetClient.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WinExe
5 | netcoreapp3.1
6 | true
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/Wpf.MqttNetClient.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Designer
7 |
8 |
9 |
10 |
11 | Designer
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Debug/netcoreapp3.1/App.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "712D56BBAF7BFB26BAE601C6D1A4622C356A8B86"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Controls.Ribbon;
19 | using System.Windows.Data;
20 | using System.Windows.Documents;
21 | using System.Windows.Ink;
22 | using System.Windows.Input;
23 | using System.Windows.Markup;
24 | using System.Windows.Media;
25 | using System.Windows.Media.Animation;
26 | using System.Windows.Media.Effects;
27 | using System.Windows.Media.Imaging;
28 | using System.Windows.Media.Media3D;
29 | using System.Windows.Media.TextFormatting;
30 | using System.Windows.Navigation;
31 | using System.Windows.Shapes;
32 | using System.Windows.Shell;
33 | using Wpf.MqttNetClient;
34 |
35 |
36 | namespace Wpf.MqttNetClient {
37 |
38 |
39 | ///
40 | /// App
41 | ///
42 | public partial class App : System.Windows.Application {
43 |
44 | ///
45 | /// InitializeComponent
46 | ///
47 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
48 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
49 | public void InitializeComponent() {
50 |
51 | #line 5 "..\..\..\App.xaml"
52 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
53 |
54 | #line default
55 | #line hidden
56 | }
57 |
58 | ///
59 | /// Application Entry Point.
60 | ///
61 | [System.STAThreadAttribute()]
62 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
63 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
64 | public static void Main() {
65 | Wpf.MqttNetClient.App app = new Wpf.MqttNetClient.App();
66 | app.InitializeComponent();
67 | app.Run();
68 | }
69 | }
70 | }
71 |
72 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Debug/netcoreapp3.1/Wpf.MqttNetClient.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Debug/netcoreapp3.1/Wpf.MqttNetClient.assets.cache
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Debug/netcoreapp3.1/Wpf.MqttNetClient.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Debug/netcoreapp3.1/Wpf.MqttNetClient.csproj.FileListAbsolute.txt
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Debug/netcoreapp3.1/Wpf.MqttNetClient.designer.runtimeconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "runtimeOptions": {
3 | "tfm": "netcoreapp3.1",
4 | "framework": {
5 | "name": "Microsoft.WindowsDesktop.App",
6 | "version": "3.1.0"
7 | },
8 | "additionalProbingPaths": [
9 | "C:\\Users\\zhouh\\.dotnet\\store\\|arch|\\|tfm|",
10 | "C:\\Users\\zhouh\\.nuget\\packages",
11 | "C:\\Microsoft\\Xamarin\\NuGet",
12 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
13 | ],
14 | "configProperties": {
15 | "Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Debug/netcoreapp3.1/Wpf.MqttNetClient.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Debug/netcoreapp3.1/Wpf.MqttNetClient.exe
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Debug/netcoreapp3.1/Wpf.MqttNetClient_MarkupCompile.i.cache:
--------------------------------------------------------------------------------
1 | Wpf.MqttNetClient
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\Desktop\C#视频\Wpf.MqttNetTest\Wpf.MqttNetClient\obj\Debug\netcoreapp3.1\
8 | Wpf.MqttNetClient
9 | none
10 | false
11 | TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1
12 | C:\Users\zhouh\Desktop\C#视频\Wpf.MqttNetTest\Wpf.MqttNetClient\App.xaml
13 | 11151548125
14 |
15 | 4641699864
16 | 193-2032189046
17 | MainWindow.xaml;
18 |
19 | False
20 |
21 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Wpf.MqttNetClient.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetClient\\Wpf.MqttNetClient.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetClient\\Wpf.MqttNetClient.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetClient\\Wpf.MqttNetClient.csproj",
11 | "projectName": "Wpf.MqttNetClient",
12 | "projectPath": "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetClient\\Wpf.MqttNetClient.csproj",
13 | "packagesPath": "C:\\Users\\zhouh\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetClient\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "fallbackFolders": [
17 | "C:\\Microsoft\\Xamarin\\NuGet\\",
18 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
19 | ],
20 | "configFilePaths": [
21 | "C:\\Users\\zhouh\\AppData\\Roaming\\NuGet\\NuGet.Config",
22 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
23 | "C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
24 | ],
25 | "originalTargetFrameworks": [
26 | "netcoreapp3.1"
27 | ],
28 | "sources": {
29 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
30 | "https://api.nuget.org/v3/index.json": {}
31 | },
32 | "frameworks": {
33 | "netcoreapp3.1": {
34 | "projectReferences": {}
35 | }
36 | },
37 | "warningProperties": {
38 | "warnAsError": [
39 | "NU1605"
40 | ]
41 | }
42 | },
43 | "frameworks": {
44 | "netcoreapp3.1": {
45 | "dependencies": {
46 | "MQTTnet": {
47 | "target": "Package",
48 | "version": "[3.0.8, )"
49 | }
50 | },
51 | "imports": [
52 | "net461",
53 | "net462",
54 | "net47",
55 | "net471",
56 | "net472",
57 | "net48"
58 | ],
59 | "assetTargetFallback": true,
60 | "warn": true,
61 | "frameworkReferences": {
62 | "Microsoft.NETCore.App": {
63 | "privateAssets": "all"
64 | },
65 | "Microsoft.WindowsDesktop.App.WPF": {
66 | "privateAssets": "none"
67 | }
68 | },
69 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.100\\RuntimeIdentifierGraph.json"
70 | }
71 | }
72 | }
73 | }
74 | }
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Wpf.MqttNetClient.csproj.nuget.g.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | True
5 | NuGet
6 | $(MSBuildThisFileDirectory)project.assets.json
7 | $(UserProfile)\.nuget\packages\
8 | C:\Users\zhouh\.nuget\packages\;C:\Microsoft\Xamarin\NuGet\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder
9 | PackageReference
10 | 5.4.0
11 |
12 |
13 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
14 |
15 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetClient/obj/Wpf.MqttNetClient.csproj.nuget.g.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.29613.14
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wpf.MqttNetTest", "Wpf.MqttNetTest\Wpf.MqttNetTest.csproj", "{AC990F78-0271-4ACE-A7B5-D2525BDC7870}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wpf.MqttNetClient", "Wpf.MqttNetClient\Wpf.MqttNetClient.csproj", "{3505D439-AC8D-4DB6-8729-36BA8C7DCD7F}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {AC990F78-0271-4ACE-A7B5-D2525BDC7870}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {AC990F78-0271-4ACE-A7B5-D2525BDC7870}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {AC990F78-0271-4ACE-A7B5-D2525BDC7870}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {AC990F78-0271-4ACE-A7B5-D2525BDC7870}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {3505D439-AC8D-4DB6-8729-36BA8C7DCD7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {3505D439-AC8D-4DB6-8729-36BA8C7DCD7F}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {3505D439-AC8D-4DB6-8729-36BA8C7DCD7F}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {3505D439-AC8D-4DB6-8729-36BA8C7DCD7F}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {EF1DC40C-4E9C-461B-B3C9-48B3CF8155A5}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace Wpf.MqttNetTest
10 | {
11 | ///
12 | /// Interaction logic for App.xaml
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | [assembly: ThemeInfo(
4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5 | //(used if a resource is not found in the page,
6 | // or application resource dictionaries)
7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8 | //(used if a resource is not found in the page,
9 | // app, or any theme specific resource dictionaries)
10 | )]
11 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Navigation;
14 | using System.Windows.Shapes;
15 | using MQTTnet;
16 | using MQTTnet.Server;
17 |
18 | namespace Wpf.MqttNetTest
19 | {
20 | ///
21 | /// Interaction logic for MainWindow.xaml
22 | ///
23 | public partial class MainWindow : Window
24 | {
25 | IMqttServer server;
26 | List instances;
27 | public MainWindow()
28 | {
29 | InitializeComponent();
30 | instances = new List();
31 | }
32 |
33 | private async void btnStart(object sender, RoutedEventArgs e)
34 | {
35 | var optionBuilder = new MqttServerOptionsBuilder().
36 | WithDefaultEndpoint().WithDefaultEndpointPort(1883).WithConnectionValidator(
37 | c =>
38 | {
39 | var flag = (c.Username != "" && c.Password != "") ? true : false;
40 |
41 | if (!flag)
42 | {
43 | c.ReasonCode = MQTTnet.Protocol.MqttConnectReasonCode.BadUserNameOrPassword;
44 | return;
45 | }
46 |
47 | c.ReasonCode = MQTTnet.Protocol.MqttConnectReasonCode.Success;
48 | instances.Add(new UserInstance()
49 | {
50 | clientId = c.ClientId,
51 | userName = c.Username,
52 | passWord = c.Password
53 | });
54 | Showlog($"{DateTime.Now}:账号:{c.Username}已订阅!\r\n");
55 | }).WithSubscriptionInterceptor(c =>
56 | {
57 | if (c == null) return;
58 | c.AcceptSubscription = true;
59 | Showlog($"{DateTime.Now}:订阅者{c.ClientId}\r\n");
60 | }).WithApplicationMessageInterceptor(c =>
61 | {
62 | if (c == null) return;
63 | c.AcceptPublish = true;
64 | string str = c.ApplicationMessage?.Payload == null ? null : Encoding.UTF8.GetString(c.ApplicationMessage?.Payload) + "\r\n";
65 | Showlog($"{DateTime.Now}:{str}\r\n");
66 | })
67 |
68 | ;
69 |
70 | server = new MqttFactory().CreateMqttServer();
71 | server.UseClientDisconnectedHandler(c =>
72 | {
73 | var use = instances.FirstOrDefault(t => t.clientId == c.ClientId);
74 | if (use != null)
75 | {
76 | instances.Remove(use);
77 | Showlog($"{DateTime.Now}:订阅者{use.userName}已退出\r\n");
78 | }
79 | });
80 | await server.StartAsync(optionBuilder.Build());
81 | }
82 |
83 | private void brnSend(object sender, RoutedEventArgs e)
84 | {
85 | instances.ForEach(arg =>
86 | {
87 | server.PublishAsync(new MqttApplicationMessage()
88 | {
89 | Topic = arg.clientId,
90 | QualityOfServiceLevel = MQTTnet.Protocol.MqttQualityOfServiceLevel.ExactlyOnce,
91 | Retain = false,
92 | Payload = Encoding.UTF8.GetBytes($"{DateTime.Now}:服务器:明天都不要来上班了!")
93 | }); ;
94 | });
95 | }
96 |
97 | //更新文本框
98 | private void Showlog(string str)
99 | {
100 | this.Dispatcher.Invoke(() =>
101 | {
102 | txtResult.Text += str;
103 | });
104 | }
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/UserInstance.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace Wpf.MqttNetTest
6 | {
7 | public class UserInstance
8 | {
9 | public string clientId { get; set; }
10 | public string userName { get; set; }
11 | public string passWord { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/Wpf.MqttNetTest.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WinExe
5 | netcoreapp3.1
6 | true
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/Wpf.MqttNetTest.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Designer
7 |
8 |
9 |
10 |
11 | Designer
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Debug/netcoreapp3.1/App.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "F675E2322766E7111D64A607502BD794BDDED331"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Controls.Ribbon;
19 | using System.Windows.Data;
20 | using System.Windows.Documents;
21 | using System.Windows.Ink;
22 | using System.Windows.Input;
23 | using System.Windows.Markup;
24 | using System.Windows.Media;
25 | using System.Windows.Media.Animation;
26 | using System.Windows.Media.Effects;
27 | using System.Windows.Media.Imaging;
28 | using System.Windows.Media.Media3D;
29 | using System.Windows.Media.TextFormatting;
30 | using System.Windows.Navigation;
31 | using System.Windows.Shapes;
32 | using System.Windows.Shell;
33 | using Wpf.MqttNetTest;
34 |
35 |
36 | namespace Wpf.MqttNetTest {
37 |
38 |
39 | ///
40 | /// App
41 | ///
42 | public partial class App : System.Windows.Application {
43 |
44 | ///
45 | /// InitializeComponent
46 | ///
47 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
48 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
49 | public void InitializeComponent() {
50 |
51 | #line 5 "..\..\..\App.xaml"
52 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
53 |
54 | #line default
55 | #line hidden
56 | }
57 |
58 | ///
59 | /// Application Entry Point.
60 | ///
61 | [System.STAThreadAttribute()]
62 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
63 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
64 | public static void Main() {
65 | Wpf.MqttNetTest.App app = new Wpf.MqttNetTest.App();
66 | app.InitializeComponent();
67 | app.Run();
68 | }
69 | }
70 | }
71 |
72 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Debug/netcoreapp3.1/Wpf.MqttNetTest.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Debug/netcoreapp3.1/Wpf.MqttNetTest.assets.cache
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Debug/netcoreapp3.1/Wpf.MqttNetTest.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Debug/netcoreapp3.1/Wpf.MqttNetTest.csproj.FileListAbsolute.txt
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Debug/netcoreapp3.1/Wpf.MqttNetTest.designer.runtimeconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "runtimeOptions": {
3 | "tfm": "netcoreapp3.1",
4 | "framework": {
5 | "name": "Microsoft.WindowsDesktop.App",
6 | "version": "3.1.0"
7 | },
8 | "additionalProbingPaths": [
9 | "C:\\Users\\zhouh\\.dotnet\\store\\|arch|\\|tfm|",
10 | "C:\\Users\\zhouh\\.nuget\\packages",
11 | "C:\\Microsoft\\Xamarin\\NuGet",
12 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
13 | ],
14 | "configProperties": {
15 | "Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Debug/netcoreapp3.1/Wpf.MqttNetTest.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Debug/netcoreapp3.1/Wpf.MqttNetTest.exe
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Debug/netcoreapp3.1/Wpf.MqttNetTest_MarkupCompile.i.cache:
--------------------------------------------------------------------------------
1 | Wpf.MqttNetTest
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\Desktop\C#视频\Wpf.MqttNetTest\Wpf.MqttNetTest\obj\Debug\netcoreapp3.1\
8 | Wpf.MqttNetTest
9 | none
10 | false
11 | TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1
12 | C:\Users\zhouh\Desktop\C#视频\Wpf.MqttNetTest\Wpf.MqttNetTest\App.xaml
13 | 11151548125
14 |
15 | 5253805573
16 | 193-2032189046
17 | MainWindow.xaml;
18 |
19 | False
20 |
21 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Wpf.MqttNetTest.csproj.nuget.dgspec.json:
--------------------------------------------------------------------------------
1 | {
2 | "format": 1,
3 | "restore": {
4 | "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetTest\\Wpf.MqttNetTest.csproj": {}
5 | },
6 | "projects": {
7 | "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetTest\\Wpf.MqttNetTest.csproj": {
8 | "version": "1.0.0",
9 | "restore": {
10 | "projectUniqueName": "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetTest\\Wpf.MqttNetTest.csproj",
11 | "projectName": "Wpf.MqttNetTest",
12 | "projectPath": "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetTest\\Wpf.MqttNetTest.csproj",
13 | "packagesPath": "C:\\Users\\zhouh\\.nuget\\packages\\",
14 | "outputPath": "C:\\Users\\zhouh\\Desktop\\C#视频\\Wpf.MqttNetTest\\Wpf.MqttNetTest\\obj\\",
15 | "projectStyle": "PackageReference",
16 | "fallbackFolders": [
17 | "C:\\Microsoft\\Xamarin\\NuGet\\",
18 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
19 | ],
20 | "configFilePaths": [
21 | "C:\\Users\\zhouh\\AppData\\Roaming\\NuGet\\NuGet.Config",
22 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
23 | "C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
24 | ],
25 | "originalTargetFrameworks": [
26 | "netcoreapp3.1"
27 | ],
28 | "sources": {
29 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
30 | "https://api.nuget.org/v3/index.json": {}
31 | },
32 | "frameworks": {
33 | "netcoreapp3.1": {
34 | "projectReferences": {}
35 | }
36 | },
37 | "warningProperties": {
38 | "warnAsError": [
39 | "NU1605"
40 | ]
41 | }
42 | },
43 | "frameworks": {
44 | "netcoreapp3.1": {
45 | "dependencies": {
46 | "MQTTnet": {
47 | "target": "Package",
48 | "version": "[3.0.8, )"
49 | }
50 | },
51 | "imports": [
52 | "net461",
53 | "net462",
54 | "net47",
55 | "net471",
56 | "net472",
57 | "net48"
58 | ],
59 | "assetTargetFallback": true,
60 | "warn": true,
61 | "frameworkReferences": {
62 | "Microsoft.NETCore.App": {
63 | "privateAssets": "all"
64 | },
65 | "Microsoft.WindowsDesktop.App.WPF": {
66 | "privateAssets": "none"
67 | }
68 | },
69 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.100\\RuntimeIdentifierGraph.json"
70 | }
71 | }
72 | }
73 | }
74 | }
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Wpf.MqttNetTest.csproj.nuget.g.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | True
5 | NuGet
6 | $(MSBuildThisFileDirectory)project.assets.json
7 | $(UserProfile)\.nuget\packages\
8 | C:\Users\zhouh\.nuget\packages\;C:\Microsoft\Xamarin\NuGet\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder
9 | PackageReference
10 | 5.4.0
11 |
12 |
13 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
14 |
15 |
--------------------------------------------------------------------------------
/Wpf.MqttNetTest/Wpf.MqttNetTest/obj/Wpf.MqttNetTest.csproj.nuget.g.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.572
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfAnimationTest", "WpfAnimationTest\WpfAnimationTest.csproj", "{8D74A9F9-EDAB-43D0-A7E7-D9DD25098554}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {8D74A9F9-EDAB-43D0-A7E7-D9DD25098554}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {8D74A9F9-EDAB-43D0-A7E7-D9DD25098554}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {8D74A9F9-EDAB-43D0-A7E7-D9DD25098554}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {8D74A9F9-EDAB-43D0-A7E7-D9DD25098554}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {52803588-DBAA-4283-84D7-9EE64C249F15}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace WpfAnimationTest
10 | {
11 | ///
12 | /// App.xaml 的交互逻辑
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Animation;
13 | using System.Windows.Media.Imaging;
14 | using System.Windows.Navigation;
15 | using System.Windows.Shapes;
16 |
17 | namespace WpfAnimationTest
18 | {
19 | ///
20 | /// MainWindow.xaml 的交互逻辑
21 | ///
22 | public partial class MainWindow : Window
23 | {
24 | public MainWindow()
25 | {
26 | InitializeComponent();
27 | }
28 |
29 | private void benStart(object sender, RoutedEventArgs e)
30 | {
31 | Storyboard sb = new Storyboard();
32 | sb.Children.Add(CreateDoubleAnimation(sample1, false, new RepeatBehavior(1), "Width", 30)); //播放1次 宽度
33 | sb.Children.Add(CreateDoubleAnimation(sample2, false, new RepeatBehavior(5), "Height", 30)); //播放5次 高度
34 | sb.Children.Add(CreateDoubleAnimation(sample3, true, RepeatBehavior.Forever, "Width", 30)); //宽度无限次播放
35 | sb.Children.Add(CreateDoubleAnimation(sample4, true, RepeatBehavior.Forever, "Height", 30));//高度无限次播放
36 | sb.Begin();
37 | }
38 |
39 | private Timeline CreateDoubleAnimation(UIElement element, bool autoReverse, RepeatBehavior repeat, string propertyPath, double by)
40 | {
41 | DoubleAnimation da = new DoubleAnimation();
42 | da.From = 0; //动画得起始值
43 | //da.To = 100; //动画得结束值
44 | da.By = by; //代表动画得基础上增加得一个范围
45 | da.Duration = TimeSpan.FromSeconds(1);
46 | da.RepeatBehavior = repeat; //动画无限次播放
47 | da.AutoReverse = autoReverse; //倒序播放
48 | Storyboard.SetTarget(da, element);
49 | Storyboard.SetTargetProperty(da, new PropertyPath(propertyPath));
50 | return da;
51 | }
52 |
53 | private void benStart1(object sender, RoutedEventArgs e)
54 | {
55 | Storyboard sb = new Storyboard();
56 | sb.Children.Add(CreateDoubleAnimation(sample2_1, false, new RepeatBehavior(1), "(UIElement.RenderTransform).(TranslateTransform.X)", 30));
57 | sb.Children.Add(CreateDoubleAnimation(sample2_2, false, new RepeatBehavior(5), "(UIElement.RenderTransform).(TranslateTransform.Y)", 30));
58 | sb.Children.Add(CreateDoubleAnimation(sample2_3, true, RepeatBehavior.Forever, "(UIElement.RenderTransform).(RotateTransform.Angle)", 360));
59 | sb.Children.Add(CreateDoubleAnimation(sample2_4, true, RepeatBehavior.Forever, "(UIElement.RenderTransform).(TranslateTransform.X)", 60));
60 | sb.Begin();
61 | }
62 |
63 | private void benStart2(object sender, RoutedEventArgs e)
64 | {
65 | Storyboard sb = new Storyboard();
66 | sb.Children.Add(CreateDoubleAnimation(sample3_1, false, new RepeatBehavior(1), "Opacity", 1));
67 | sb.Children.Add(CreateDoubleAnimation(sample3_2, false, new RepeatBehavior(5), "Opacity", 1));
68 | sb.Children.Add(CreateDoubleAnimation(sample3_3, true, RepeatBehavior.Forever, "Opacity", 1));
69 | sb.Children.Add(CreateDoubleAnimation(sample3_4, true, RepeatBehavior.Forever, "Opacity", 1));
70 | sb.Begin();
71 | }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // 有关程序集的一般信息由以下
8 | // 控制。更改这些特性值可修改
9 | // 与程序集关联的信息。
10 | [assembly: AssemblyTitle("WpfAnimationTest")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("WpfAnimationTest")]
15 | [assembly: AssemblyCopyright("Copyright © 2020")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // 将 ComVisible 设置为 false 会使此程序集中的类型
20 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
21 | //请将此类型的 ComVisible 特性设置为 true。
22 | [assembly: ComVisible(false)]
23 |
24 | //若要开始生成可本地化的应用程序,请设置
25 | //.csproj 文件中的 CultureYouAreCodingWith
26 | //例如,如果您在源文件中使用的是美国英语,
27 | //使用的是美国英语,请将 设置为 en-US。 然后取消
28 | //对以下 NeutralResourceLanguage 特性的注释。 更新
29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置
36 | //(未在页面中找到资源时使用,
37 | //或应用程序资源字典中找到时使用)
38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
39 | //(未在页面中找到资源时使用,
40 | //、应用程序或任何主题专用资源字典中找到时使用)
41 | )]
42 |
43 |
44 | // 程序集的版本信息由下列四个值组成:
45 | //
46 | // 主版本
47 | // 次版本
48 | // 生成号
49 | // 修订号
50 | //
51 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
52 | // 方法是按如下所示使用“*”: :
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本: 4.0.30319.42000
5 | //
6 | // 对此文件的更改可能导致不正确的行为,如果
7 | // 重新生成代码,则所做更改将丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WpfAnimationTest.Properties
12 | {
13 |
14 |
15 | ///
16 | /// 强类型资源类,用于查找本地化字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// 返回此类使用的缓存 ResourceManager 实例。
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WpfAnimationTest.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// 覆盖当前线程的 CurrentUICulture 属性
56 | /// 使用此强类型的资源类的资源查找。
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WpfAnimationTest.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/App.g.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "F1F634FF6DA518F1ADB906BA8C4CB8098F1726CA"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 | using System.Windows.Shell;
32 | using WpfAnimationTest;
33 |
34 |
35 | namespace WpfAnimationTest {
36 |
37 |
38 | ///
39 | /// App
40 | ///
41 | public partial class App : System.Windows.Application {
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 |
50 | #line 5 "..\..\App.xaml"
51 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
52 |
53 | #line default
54 | #line hidden
55 | }
56 |
57 | ///
58 | /// Application Entry Point.
59 | ///
60 | [System.STAThreadAttribute()]
61 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
62 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
63 | public static void Main() {
64 | WpfAnimationTest.App app = new WpfAnimationTest.App();
65 | app.InitializeComponent();
66 | app.Run();
67 | }
68 | }
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/App.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "F1F634FF6DA518F1ADB906BA8C4CB8098F1726CA"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.42000
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 | using System.Windows.Shell;
32 | using WpfAnimationTest;
33 |
34 |
35 | namespace WpfAnimationTest {
36 |
37 |
38 | ///
39 | /// App
40 | ///
41 | public partial class App : System.Windows.Application {
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 |
50 | #line 5 "..\..\App.xaml"
51 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
52 |
53 | #line default
54 | #line hidden
55 | }
56 |
57 | ///
58 | /// Application Entry Point.
59 | ///
60 | [System.STAThreadAttribute()]
61 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
62 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
63 | public static void Main() {
64 | WpfAnimationTest.App app = new WpfAnimationTest.App();
65 | app.InitializeComponent();
66 | app.Run();
67 | }
68 | }
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/WpfAnimationTest/WpfAnimationTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/WpfAnimationTest/WpfAnimationTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/WpfAnimationTest/WpfAnimationTest/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/WpfAnimationTest/WpfAnimationTest/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/WpfAnimationTest/WpfAnimationTest/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/WpfAnimationTest.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 8ca7e6380395839654e9d63a57baea04fa6c5c8e
2 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/WpfAnimationTest.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HenJigg/C-_VideoCode/fdda6cb40b15ccf78defe3c40e7ca004ed125f45/WpfAnimationTest/WpfAnimationTest/obj/Debug/WpfAnimationTest.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/WpfAnimationTest_MarkupCompile.cache:
--------------------------------------------------------------------------------
1 | WpfAnimationTest
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\Desktop\C#视频\WpfAnimationTest\WpfAnimationTest\obj\Debug\
8 | WpfAnimationTest
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\zhouh\Desktop\C#视频\WpfAnimationTest\WpfAnimationTest\App.xaml
13 | 11151548125
14 |
15 | 9406997725
16 | 13-1142990016
17 | MainWindow.xaml;
18 |
19 | True
20 |
21 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/WpfAnimationTest_MarkupCompile.i.cache:
--------------------------------------------------------------------------------
1 | WpfAnimationTest
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\zhouh\Desktop\C#视频\WpfAnimationTest\WpfAnimationTest\obj\Debug\
8 | WpfAnimationTest
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\zhouh\Desktop\C#视频\WpfAnimationTest\WpfAnimationTest\App.xaml
13 | 11151548125
14 |
15 | 9406997725
16 | 13-1142990016
17 | MainWindow.xaml;
18 |
19 | True
20 |
21 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/WpfAnimationTest_MarkupCompile.i.lref:
--------------------------------------------------------------------------------
1 |
2 |
3 | FC:\Users\zhouh\Desktop\C#视频\WpfAnimationTest\WpfAnimationTest\MainWindow.xaml;;
4 |
5 |
--------------------------------------------------------------------------------
/WpfAnimationTest/WpfAnimationTest/obj/Debug/WpfAnimationTest_MarkupCompile.lref:
--------------------------------------------------------------------------------
1 |
2 |
3 | FC:\Users\zhouh\Desktop\C#视频\WpfAnimationTest\WpfAnimationTest\MainWindow.xaml;;
4 |
5 |
--------------------------------------------------------------------------------