This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: { | |
proxy: { | |
'^/api': { | |
target, | |
secure: false | |
} | |
}, | |
port: 61402, | |
https: { | |
key: fs.readFileSync(keyFilePath), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
methods: { | |
async fetchData() { | |
this.post = null; | |
this.loading = true; | |
var response = await fetch(''https://localhost:7185/api/weatherforecast''); | |
if (response.ok) { | |
this.post = await response.json(); | |
this.loading = false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: { | |
proxy: { | |
'^/api': { | |
target, | |
secure: false | |
} | |
}, | |
port: 61402, | |
https: { | |
key: fs.readFileSync(keyFilePath), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var response = await fetch('/api/weatherforecast'); | |
if (response.ok) { | |
this.post = await response.json(); | |
this.loading = false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var response = await fetch('weatherforecast'); | |
if (response.ok) { | |
this.post = await response.json(); | |
this.loading = false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy: { | |
'^/weatherforecast': { | |
target, | |
secure: false | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const target = env.ASPNETCORE_HTTPS_PORT ? `https://localhost:${env.ASPNETCORE_HTTPS_PORT}` : | |
env.ASPNETCORE_URLS ? env.ASPNETCORE_URLS.split(';')[0] : 'https://localhost:7185'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: { | |
proxy: { | |
'^/weatherforecast': { | |
target, | |
secure: false | |
} | |
}, | |
port: 61402, | |
https: { | |
key: fs.readFileSync(keyFilePath), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
[ApiController] | |
[Route("api/[controller]")] | |
public class WeatherForecastController : ControllerBase | |
{ | |
private static readonly string[] Summaries = new[] | |
{ | |
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private initialize_Mutex_NoCheck = async () => { | |
this.startTime = new Date().getTime(); | |
await Promise.all([ | |
...Array.from({ length: 3 }, async () => { | |
var key = 'mutexKey_NoDataCheck '; | |
await this.loadWithMutexLockNoDataCheck(key); | |
this.log(this.mutexDataMap); | |
}) | |
]); | |
} |