public PersistenceConversationCaregiver(PersistenceConversationalModel pcm, ConversationEndMode endMode) { this.pcm = pcm; this.endMode = endMode; string convId = pcm.GetConvesationId(); IConversation c = pcm.cca.Container.Get(convId) ?? pcm.cf.CreateConversation(convId); pcm.cca.Container.SetAsCurrent(c); c.Resume(); }
protected IDisposable GetConversationCaregiver(ConversationEndMode endMode) { return(new PersistenceConversationCaregiver(this, endMode)); }