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
version: '3.5' | |
services: | |
postgres: | |
container_name: postgres_dock | |
image: postgres:12 | |
environment: | |
POSTGRES_USER: ${POSTGRES_USER:-postgres} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-PG_PASSWORD_HERE} | |
PGDATA: /data/postgres |
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 System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using Caliburn.Micro; | |
using Autofac; | |
using IContainer = Autofac.IContainer; | |
namespace Caliburn.Micro.Autofac { |
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 class SiWebApiDependencyResolver : IDependencyResolver { | |
private readonly Container _container; | |
private readonly IDependencyScope _rootScope; | |
private bool _disposed; | |
public SiWebApiDependencyResolver(Container container) { | |
if (container == null) | |
throw new ArgumentNullException("container"); | |
_container = container; |
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
// the documents | |
public class Photo { | |
public string Id { get; set; } | |
public DateTimeOffset CreatedAt { get; set; } | |
} | |
public class Place { | |
public string Id { get; set; } | |
public string Name { get; set; } |
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
// documents: Place | |
public class Place{ | |
public int Id{get;set;} | |
public string Name{get;set;} | |
public IList<int> PhotoIds{get;set;} | |
} | |
// documents: Photo | |
public class Photo{ | |
public int Id{get;set;} |