예제 #1
0
        public void Delete(string name)
        {
            client.VerifyAccess();

            CollectionEntry entry = null;

            if (this.TryGetValue(name, out entry))
            {
                DeleteCollection(entry, Source.Client);
            }
            else
            {
                // If we have no local record of a collection it may still exist. Send Delete payload
                Payload eventData = new CollectionDeletedPayload(name, this.client.ClientId);
                client.SendPublishEvent(eventData);
            }
        }