Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

丁松杰 / Pole

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Pole
  • src
  • Pole.Core
  • Extensions
  • PoleApplicationBuilderExtensions.cs
Find file
BlameHistoryPermalink
  • dingsongjie's avatar
    完成全部 依赖注入 与启动 · c6504035
    dingsongjie committed 5 years ago
    c6504035
PoleApplicationBuilderExtensions.cs 461 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
using Microsoft.AspNetCore.Builder;
using Pole.Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace  Microsoft.AspNetCore.Builder
{
    public static class PoleApplicationBuilderExtensions
    {
        public static IApplicationBuilder UsePole(this IApplicationBuilder applicationBuilder)
        {
            Startup.StartRay(applicationBuilder.ApplicationServices);
            return applicationBuilder;
        }
    }
}