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

            session._devicesToAuthenticate.AddRange(devices);
            return(session);
        }
Ejemplo 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);
        }