public FileQuery(ICDNService CDNService) { Field <ListGraphType <CDNFileInfoType> >( "files", resolve: context => CDNService.GetAllFiles(0, 100000) ); }
//private readonly MyDataContext _myDataContext; public CDNFileController(ILogger <CDNFileController> logger, ICDNService cdnService //, MyDataContext myDataContext ) { _logger = logger; _cdnService = cdnService; //_myDataContext = myDataContext; }
public CDNController(ILogger <CDNController> logger, ICDNService cdnService) { _logger = logger; _cdnService = cdnService; }
public FileSchema(ICDNService repo, IServiceProvider serviceProvider) : base(serviceProvider) { Query = new FileQuery(repo); }