This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
GitHub Packages feeds always need to be authenticated. This means if your feed is public you still have to authenticate on your development machine and build server just like you would if it was a private feed.
To setup the feed locally a Personal Access Token needs to be created with the repo and read:packages scopes.
If you're going to be publishing packages with this token you'll also need the write:packages scope.
| $random = [System.Security.Cryptography.RandomNumberGenerator]::Create(); | |
| $buffer = New-Object byte[] 32; | |
| $random.GetBytes($buffer); | |
| [BitConverter]::ToString($buffer).Replace("-", [string]::Empty); |
This will provide an example of integrating Active Directory authentication in an ASP.NET Core app.
Note, you'll need to be running on a Windows domain with Visual Studio debugging in IIS Express for this to work.
In launchSettings.json, you'll want to modify iisSettings by turning on windowsAuthentication:
Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service| using System; | |
| namespace Example | |
| { | |
| public abstract class ExecutionResult | |
| { | |
| protected ExecutionResult(Guid aggregateId, Guid commandId, DateTime executedOn) | |
| { | |
| AggregateId = aggregateId; | |
| CommandId = commandId; |
| #addin "Cake.IIS" | |
| #addin "Cake.Http" | |
| #addin "Cake.Services" | |
| using System; | |
| string servidor = null; | |
| var servidores = Argument<string>("AppServers", string.Empty).Split(','); | |
| var appPoolOrService = Argument<string>("AppPoolOrService", string.Empty); |
| using System; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| namespace FileAnalyzer | |
| { | |
| public class Record | |
| { | |
| public DateTime Start => DateTime.Parse(_line.Split(' ')[0]); |
| void Main() | |
| { | |
| var pushId = FirebasePushIDGenerator.GeneratePushID(); | |
| Console.WriteLine(pushId); | |
| Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); | |
| Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); | |
| Thread.Sleep(5); | |
| Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); | |
| Thread.Sleep(5); | |
| Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); |