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
using (var handler = new HttpClientHandler()){ | |
handler.ServerCertificateCustomValidationCallback = delegate { return true; }; | |
using (var httpClient = new HttpClient(handler)){ | |
return httpClient.GetStringAsync("http://" + self.URL + "/version").Result; | |
} | |
} |
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
!#/bin/bash | |
dbus-uuidgen | sed 's/./-&/9;s/./-&/14;s/./-&/19;s/./-&/24' |
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
public string ConnectionString = @"Port=5432;Server=127.0.0.1;Database=eftest;UserId=dbuser;Password=dbpassword;"; | |
public DbSet<Blog> Blogs { get; set; } | |
public DbSet<Post> Posts { get; set; } | |
protected override void OnModelCreating(ModelBuilder modelBuilder) | |
{ | |
// Make Blog.Url required | |
modelBuilder.Entity<Blog>() | |
.Property(b => b.url) |
NewerOlder