Ejemplo n.º 1
0
        public async Task <bool> ConnectAsync(ProfileItem profileItem, TimeSpan timeoutDuration)
        {
            if (profileItem == null)
            {
                throw new ArgumentNullException(nameof(profileItem));
            }

            return(await NativeWifi.ConnectAsync(profileItem.Name, profileItem.InterfaceGuid, NativeWifi.BssType.Any, timeoutDuration));
        }