|
|
|
|
|
|
26
|
// This method gets called by the runtime. Use this method to add services to the container.
|
26
|
// This method gets called by the runtime. Use this method to add services to the container.
|
|
27
|
public void ConfigureServices(IServiceCollection services)
|
27
|
public void ConfigureServices(IServiceCollection services)
|
|
28
|
{
|
28
|
{
|
|
|
|
29
|
+
|
|
|
|
30
|
+
|
|
|
|
31
|
+
|
|
|
|
32
|
+
|
|
|
|
33
|
+
|
|
29
|
//×¢²áÊý¾Ý¿âµÄ·þÎñ
|
34
|
//×¢²áÊý¾Ý¿âµÄ·þÎñ
|
|
30
|
string connectionString = Configuration.GetConnectionString("xyContext");
|
35
|
string connectionString = Configuration.GetConnectionString("xyContext");
|
|
31
|
services.AddHttpClient("client_dd", config =>
|
36
|
services.AddHttpClient("client_dd", config =>
|