Esempio n. 1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddRazorPages();
            services.AddServerSideBlazor();

            var gitHubToken = new GithubToken {
                AppName          = "MarkdownKaTeX",
                ClientID         = "d18caf90d72937793d29",
                ClientSecret     = "7a0bd7b2fd793ee41c445d40347c1700b5b3c129",
                GitUser          = "******",
                DefaultReproName = "AccessibleRL"
            };

            services.AddSingleton <MdKaTeXService>(new MdKaTeXService(gitHubToken));
        }
Esempio n. 2
0
 public MdKaTeXService(GithubToken githubToken)
 {
     _githubToken = githubToken;
     GitUser      = githubToken.GitUser;
     ReproName    = githubToken.DefaultReproName;
 }