Esempio n. 1
0
        public static AuthenticationSession CreateFromDiscovery(IReadOnlyList <Device> devices)
        {
            var session = new AuthenticationSession();

            session._devicesToAuthenticate.AddRange(devices);
            return(session);
        }
Esempio n. 2
0
        public static AuthenticationSession RestoreFromFile(string s)
        {
            var session = new AuthenticationSession();
            var devices = JsonConvert.DeserializeObject <List <AuthenticatedDevice> >(s);

            session._authenticatedDevices.AddRange(devices);
            return(session);
        }