Ejemplo n.º 1
0
        public bool GetContext()
        {
            (bool isNewlyCreated, DialogContext aContext) = accController.GetContext(userId, sessionId);

            if (isNewlyCreated)
            {
                aContext.datastoreName = this.datastoreName;
            }
            else
            {
                if (aContext.datastoreName != this.datastoreName)
                {
                    if (aContext.status != DialogStatus.PENDING)
                    {
                        this.context = aContext;
                        return(false);
                    }
                    else
                    {
                        aContext.datastoreName = this.datastoreName;
                    }
                }
            }

            this.context = aContext;
            return(true);
        }
Ejemplo n.º 2
0
 public void GetContext()
 {
     this.context = accController.GetContext(userId, sessionId);
 }