This file contains 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
using System; | |
using System.IO; | |
using Microsoft.ML; | |
using Microsoft.ML.Data; | |
var dataPath = Path.Combine(Environment.CurrentDirectory, "skills.csv"); | |
var mlContext = new MLContext(); | |
var dataView = mlContext.Data.LoadFromTextFile<SkillData>(dataPath, ',', true); | |
const string featuresColumnName = "Features"; |
This file contains 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
using Microsoft.ML; | |
using Microsoft.ML.Data; | |
using Microsoft.ML.Trainers; | |
using System; | |
using System.IO; | |
// In machine learning, the columns that are used to make a prediction are called Features, | |
// and the column with the returned prediction is called the Label. | |
// We want to predict interest ratings => Label |
This file contains 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
public record AddGameCommand(string Title, DateTime ReleaseDate, TimeSpan HoursPlayed) | |
{ | |
public class AddGameCommandHandler | |
{ | |
// ... | |
public void Handle(AddGameCommand request) | |
{ | |
_db.Add("game", request); | |
} | |
} |
This file contains 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
{ | |
} |
This file contains 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
version: '3.8' | |
services: | |
gateway: | |
networks: | |
- traefik | |
- default | |
deploy: | |
labels: | |
- "traefik.enable=true" |
This file contains 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
version: '3.8' | |
services: | |
gateway: | |
image: unidash/gateway | |
build: | |
context: . | |
dockerfile: Unidash.Gateway/Dockerfile | |
auth: |
This file contains 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
version: '3.8' | |
services: | |
traefik: | |
image: traefik:v2.2 | |
ports: | |
- "80:80" | |
- "443:443" | |
command: | |
- --api.insecure=true # set to 'false' on production |
This file contains 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
version: '3.4' | |
services: | |
gateway: | |
networks: | |
- traefik | |
- default | |
deploy: | |
labels: | |
- "traefik.enable=true" |
This file contains 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
using Unidash.Auth.Domain.UserAggregate; | |
using MediatR; | |
namespace Unidash.Auth.Users.Queries | |
{ | |
public class FindUserQuery : IRequest<User> | |
{ | |
public string Id { get; set; } | |
public FindUserQuery(string id) |
This file contains 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
using MediatR; | |
namespace Unidash.Auth.Users.Commands | |
{ | |
public class CreateUserCommand : IRequest | |
{ | |
public string Id { get; private set; } | |
public string DisplayName { get; private set; } |
NewerOlder