Exemplo n.º 1
0
        public List <CloudBlobContainer> GetPrimaryContainers()
        {
            List <CloudBlobContainer> result = new List <CloudBlobContainer>();

            PrimaryServers.ForEach(s => result.Add(ConfigurationLookup.GetCloudBlobContainer(s, this.Name)));
            return(result);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Removed already registered servers in session states if they don't exist anymore (because of some reconfiguration).
        /// </summary>
        private void garbageCollectOldServersFromSessionState()
        {
            List <string> allServers = new List <string>();

            PrimaryServers.ForEach(o => allServers.Add(o));
            SecondaryServers.ForEach(o => allServers.Add(o));

            //State.UnregisterOldServers(allServers);
        }
        public override string ToString()
        {
            string result;

            result  = "Container: " + this.Name;
            result += " Primaries: ";
            PrimaryServers.ForEach(e => result += e + ",");
            result += " Secondaries: ";
            SecondaryServers.ForEach(e => result += e + ",");
            return(result);
        }