/// <summary> /// Initializes a new instance of the DispatchedTagCategoryService class /// </summary> /// <param name="wrappedService">the wrapped service</param> /// <param name="dispatcher">the thread dispatcher</param> public DispatchedTagCategoryService(ITagCategoryService wrappedService, Dispatcher dispatcher) : base(dispatcher) { if (wrappedService == null) { throw new ArgumentNullException("wrappedService"); } this.wrappedService = wrappedService; this.wrappedService.GetTopCategoriesCompleted += (s, e) => this.DispatchEvent(this.GetTopCategoriesCompleted, s, e); this.wrappedService.GetChildCategoriesCompleted += (s, e) => this.DispatchEvent(this.GetChildCategoriesCompleted, s, e); this.wrappedService.GetTopTagsCompleted += (s, e) => this.DispatchEvent(this.GetTopTagsCompleted, s, e); this.wrappedService.GetChildTagsCompleted += (s, e) => this.DispatchEvent(this.GetChildTagsCompleted, s, e); }
public TagCategoryController(ITagCategoryService tagCategoryService) { this.tagCategoryService = tagCategoryService; }