• 大小: 0.64M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: API  上传  图片  源码  web  

资源简介


资源截图

代码片段和文件信息

using IdentityServer4.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace IdentityServer
{
    /// 
    /// yilezhu
    /// 2018.7.15
    /// 因为此处采用in-memory,所以硬编码一些api,以及client
    /// 

    public class ApiConfig
    {
        /// 
        /// 定义ApiResource   这里的资源(Resources)指的就是我们的API
        /// 

        /// ApiResource枚举
        public static IEnumerable GetApiResources()
        {
            return new[]
            {
                new ApiResource(“PictureApi“ “图片上传的APi“)
            };
        }

        /// 
        /// 定义受信任的客户端 Client
        /// 

        /// 
        public static IEnumerable GetCli

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\
     文件        3010  2018-07-15 15:48  ImageUploadApiDemo-master\.gitignore
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\DesignTimeBuild\
     文件     2553208  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\DesignTimeBuild\.dtbcache
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\v15\
     文件       18432  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\v15\.suo
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\v15\Server\
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\v15\Server\sqlite3\
     文件           0  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\v15\Server\sqlite3\db.lock
     文件        4096  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\v15\Server\sqlite3\storage.ide
     文件       32768  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\v15\Server\sqlite3\storage.ide-shm
     文件      181312  2018-07-15 15:48  ImageUploadApiDemo-master\.vs\ImageUploadApiDemo\v15\Server\sqlite3\storage.ide-wal
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\
     文件        1622  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\ApiConfig.cs
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\Controllers\
     文件         980  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\Controllers\ValuesController.cs
     文件         362  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\IdentityServer.csproj
     文件         612  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\Program.cs
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\Properties\
     文件         755  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\Properties\launchSettings.json
     文件        1564  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\Startup.cs
     文件         137  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\appsettings.Development.json
     文件          97  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\appsettings.json
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\bin\
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\bin\Debug\
     目录           0  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\bin\Debug\netcoreapp2.1\
     文件      226348  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\bin\Debug\netcoreapp2.1\IdentityServer.deps.json
     文件        8704  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\bin\Debug\netcoreapp2.1\IdentityServer.dll
     文件        1624  2018-07-15 15:48  ImageUploadApiDemo-master\IdentityServer\bin\Debug\netcoreapp2.1\IdentityServer.pdb
............此处省略105个文件信息

评论

共有 条评论