public void Dispose() { try { WorkItemPublishSubscribeHelper.Unsubscribe(_callback); } catch (Exception e) { Platform.Log(LogLevel.Error, e); } }
public WorkItemUnsubscribeResponse Unsubscribe(WorkItemUnsubscribeRequest request) { try { WorkItemPublishSubscribeHelper.Unsubscribe(_callback); return(new WorkItemUnsubscribeResponse()); } catch (Exception e) { var message = "Failed to process WorkItem Unsubscribe request."; var exceptionMessage = String.Format("{0}\nDetail:{1}", message, e.Message); throw new WorkItemServiceException(exceptionMessage); } }