/// <summary> /// Method is creating temporary post item and deletes it as soon as creator address is determined. /// </summary> /// <returns></returns> internal string GetCurrentUser() { try { PostItem postItem = new PostItem(this.GetSessionVariable()); postItem.Body = new MessageBody("Ews temp post item"); postItem.Save(); PostItem tempPostItem = PostItem.Bind(this.GetSessionVariable(), postItem.Id); string from = tempPostItem.From.Address.ToString(); postItem = null; tempPostItem.Delete(DeleteMode.HardDelete); return from.ToLower(); } catch { return null; } }