File tree Expand file tree Collapse file tree 6 files changed +10
-530
lines changed
Expand file tree Collapse file tree 6 files changed +10
-530
lines changed Original file line number Diff line number Diff line change 99 options . UseSqlServer ( builder . Configuration . GetConnectionString ( "MyDbConnection" ) ) ) ;
1010 builder . Services . AddDistributedMemoryCache ( ) ;
1111}
12- else
13- {
14- builder . Services . AddDbContext < MyDatabaseContext > ( options =>
15- options . UseSqlServer ( builder . Configuration . GetConnectionString ( "AZURE_SQL_CONNECTIONSTRING" ) ) ) ;
16- builder . Services . AddStackExchangeRedisCache ( options =>
17- {
18- options . Configuration = builder . Configuration [ "AZURE_REDIS_CONNECTIONSTRING" ] ;
19- options . InstanceName = "SampleInstance" ;
20- } ) ;
21- }
22-
12+ // else
13+ // {
14+ // builder.Services.AddDbContext<MyDatabaseContext>(options =>
15+ // options.UseSqlServer(builder.Configuration.GetConnectionString("AZURE_SQL_CONNECTIONSTRING")));
16+ // builder.Services.AddStackExchangeRedisCache(options =>
17+ // {
18+ // options.Configuration = builder.Configuration["AZURE_REDIS_CONNECTIONSTRING"];
19+ // options.InstanceName = "SampleInstance";
20+ // });
21+ // }
2322
2423// Add services to the container.
2524builder . Services . AddControllersWithViews ( ) ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments