예제 #1
0
        public async Task DeployAppAsync(string fileName, bool includePdbs = true, CancellationToken cancellationToken = default)
        {
            await MonoDisableAsync(cancellationToken : cancellationToken)
            .ConfigureAwait(false);

            string osVersion = await GetOSVersion(TimeSpan.FromSeconds(30), cancellationToken)
                               .ConfigureAwait(false);

            await _meadowDevice.DeployAppAsync(fileName, osVersion, includePdbs, cancellationToken)
            .ConfigureAwait(false);

            await MonoEnableAsync(cancellationToken : cancellationToken)
            .ConfigureAwait(false);
        }