示例#1
0
        private async Task SyncCreated(Profile profile)
        {
            if (External(profile).Exists())
            {
                // This should not happen
                await Skip(profile);

                return;
            }

            if (!profile.IsValid())
            {
                _logger.Warn($"Profile \"{profile.Name}\" is not valid! Removing.");
                await Skip(profile);

                return;
            }

            profile = WithUniqueName(profile);
            profile = await CreatedInApi(profile);
            await FinishSyncCreated(profile);
        }