예제 #1
0
        /// <summary>
        /// Loads the specified <see cref="Uri"/> into the view.
        /// </summary>
        /// <param name="uri"></param>
        public void Open(Uri uri)
        {
            Contract.Requires <ArgumentNullException>(uri != null);

            message = server.Load(uri);
        }
예제 #2
0
 public Task <ViewMessage> Get(string name)
 {
     return(Task.FromResult(server.Load(new Uri(Request.RequestUri, "/Examples/" + name + ".xml"))));
 }