Example #1
0
 private NoteStore.Client GetNoteStore(UserStore.Client userStore, string authToken)
 {
     try {
         var noteStoreUrl = userStore.getNoteStoreUrl(authToken);
         var noteStoreTransport = new THttpClient(new Uri(noteStoreUrl));
         var noteStoreProtocol = new TBinaryProtocol(noteStoreTransport);
         return new NoteStore.Client(noteStoreProtocol);
     }
     catch (Exception ex) {
         throw new EverpageException(
             String.Format("Error occurred when getting note store: {0}", ex.Message),
             ex);
     }
 }