Exemplo n.º 1
0
        static void Remove(RemoveInstructions instructions, bool local)
        {
            if (instructions.Keys == null) return;

            //if (Config.Cluster.Current.Enabled && local)
            //{
            //    Mubble.MessageQueue.Manager.Send("mubble", instructions);
            //}
            //else
            //{
                foreach (string key in instructions.Keys)
                {
                    HttpRuntime.Cache.Remove(key);
                }
            //}
        }
Exemplo n.º 2
0
        static void Remove(RemoveInstructions instructions)
        {
            bool local = string.Equals(
                        Environment.MachineName,
                        instructions.Origin,
                        StringComparison.CurrentCultureIgnoreCase
                  );

            if (!local)
            {
                Remove(instructions, local);
            }
        }