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); }
public void GetContext() { this.context = accController.GetContext(userId, sessionId); }