Exemple #1
0
 partial void DeleteMessage(Message instance);
Exemple #2
0
 partial void InsertMessage(Message instance);
Exemple #3
0
 partial void UpdateMessage(Message instance);
Exemple #4
0
        public void PutMessage(string queueName, Message message, TimeSpan timeToLive)
        {
            var msg = new Data.Message();
            msg.Queue = queueName;
            if (message.Content != null)
                msg.Content = message.Content;

            using (var dc = new Data.MessageDataContext())
            {
                dc.Messages.InsertOnSubmit(msg);
                dc.SubmitChanges();
            }
        }