Пример #1
0
 internal UserState()
 {
     ConnectionContexts = new ConnectionContexts();
     PrivateKeys = new PrivateKeys();
     InstanceTags = new InstanceTags();
     PendingPrivateKey = null;
     TimerRunning = 0;
 }
Пример #2
0
        public static InstanceTags GetInstanceTags(Collection<instancetag> instancetags)
        {
            var results = new InstanceTags();

            foreach (instancetag instancetag in instancetags)
            {
                var tag = new InstanceTag(instancetag.Account, instancetag.Protocol);
                tag.SetInstanceTag(instancetag.InstanceTag);

                results.Add(tag);
            }

            return results;
        }