示例#1
0
 public SampleController(
     ISampleFactory commandFactory,
     IIdentityProvider identityProvider)
 {
     _commandFactory   = commandFactory;
     _identityProvider = identityProvider;
 }
示例#2
0
        public SampleService(
            IUnitOfWork unitOfWork,
            ILogger <SampleService> logger,
            ISampleFactory sampleFactory,
            ICachingService cachingService) : base(unitOfWork, logger)
        {
            this.sampleFactory  = sampleFactory;
            this.cachingService = cachingService;

            repository = UnitOfWork.GetRepository <Sample>();
        }
示例#3
0
 public SampleService(ISampleRepository repository, ISampleFactory factory)
 {
     this.repository = repository;
     this.factory    = factory;
 }
 public RouteExplorerService(IApiExplorer apiExplorer, ISampleFactory sampleFactory)
 {
     _apiExplorer = apiExplorer;
     _sampleFactory = sampleFactory;
 }