Ejemplo n.º 1
0
        private async Task GetStartedDemo()
        {
            // Create Database, if it doesn't exist...
            this.client = new DocumentClient(new Uri(EndpointUri), PrimaryKey);
            await this.CreateDatabaseIfNotExists(Database);

            // Customer Related Processing...
            CustomerService customerService = new CustomerService(client);
            await customerService.CustomerProcessing();

            // User Related Processing...
            UserService userService = new UserService(client);
            await userService.UserProcessing();

            // Device Related Processing...
            DeviceService deviceService = new DeviceService(client);
            await deviceService.DeviceProcessing();

            // Asset Related Processing...
            AssetService assetService = new AssetService(client);
            await assetService.AssetProcessing();
        }