public ApplicationService( IApplicationStore appStore, IChangeLogService changeLogService, IApplicationPartDataLoader applicationPartByIdDataLoader, IApplicationPartComponentDataLoader applicationPartComponentByIdDataloader, IComponentStore compStore, IDataLoader <Guid, Component> componentById, ISchemaService schemaService) { _appStore = appStore; _changeLogService = changeLogService; _applicationPartByIdDataLoader = applicationPartByIdDataLoader; _applicationPartByIdDataloaderDataLoader = applicationPartComponentByIdDataloader; _compStore = compStore; _schemaService = schemaService; _componentById = componentById; }
public static Task <ApplicationPart?> GetApplicationPartAsync( Guid id, IApplicationPartDataLoader applicationPartById, CancellationToken cancellationToken) => applicationPartById.LoadAsync(id, cancellationToken);