-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.ts
22 lines (19 loc) · 1004 Bytes
/
App.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import { ClientStorage } from "@itwin/object-storage-core";
import { FileDownloader } from "../FileDownloader";
/**
* This class is an example of a minimal application that depends on generic
* `ClientStorage` class. It is not aware of any implementations which are
* configured at runtime (see Run.ts file in this directory). This application
* is not dependent on any specific dependency injection framework.
*/
export class App {
public constructor(private _clientStorage: ClientStorage) {}
public async start(): Promise<void> {
const fileDownloader = new FileDownloader(this._clientStorage);
await fileDownloader.downloadFile();
}
}