/// <inheritdoc /> public ConfigureNuGetFeedsDialogViewModel(LoaderConfig loaderConfig) { _config = loaderConfig; Feeds = new ObservableCollection <NugetFeed>(loaderConfig.NuGetFeeds); CreateNewFeedCommand = new CreateNewFeedCommand(this); DeleteFeedCommand = new DeleteFeedCommand(this); }
public HttpResponseMessage Delete(string name) { var deleteFeedCommand = new DeleteFeedCommand(feedName: name); commandProcessor.Send(deleteFeedCommand); return(Request.CreateResponse(HttpStatusCode.OK)); }
public HttpResponseMessage Delete(string name) { //TODO: Should support conditional DELETE based on ETag var deleteFeedCommand = new DeleteFeedCommand(feedName: name); commandProcessor.Send(deleteFeedCommand); return(Request.CreateResponse(HttpStatusCode.OK)); }
/// <inheritdoc /> public void Dispose() => DeleteFeedCommand?.Dispose();