-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRun.ts
23 lines (20 loc) · 904 Bytes
/
Run.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import {
AzureClientStorage,
BlockBlobClientWrapperFactory,
} from "@itwin/object-storage-azure";
import { App } from "./App";
/**
* This function starts the application by creating an instance of
* `AzureClientStorage` which is passed to `App` constructor.
*/
async function run(): Promise<void> {
const blobClientWrapperFactory = new BlockBlobClientWrapperFactory();
const clientStorage = new AzureClientStorage(blobClientWrapperFactory);
const app = new App(clientStorage);
return app.start();
}
run().catch((err) => console.error(err));