public static async Task <WebBoolResult> ProcessAsync(IOwinContext context, string identifier) { bool result = true; if (identifier == null) { Logger.Debug("FinishStream: Identifier is null"); result = false; return(new WebBoolResult { Result = result }); } if (!StreamControl.ValidateIdentifier(identifier)) { Logger.Debug("FinishStream: Unknown identifier: {0}", identifier); result = false; return(new WebBoolResult { Result = result }); } // Remove the stream from the stream controller result = await StreamControl.DeleteStreamItemAsync(identifier); return(new WebBoolResult { Result = result }); }