public async Task <GetProfilesResponse> GetProfilesAsync() { var request = new GetProfiles(); var response = await ExecuteAsync <GetProfiles, GetProfilesResponse>(request, MediaActions.GetProfiles); return(response); }
public object Get(GetProfiles request) { var profiles = new List <string>(); try { profiles = Plugin.StreamingProxy.GetTranscoderProfiles(new CancellationToken()).Select(p => p.Name).ToList(); } catch (ServiceAuthenticationException) { // Do nothing, allow an empty list to be passed out } catch (Exception exception) { Plugin.Logger.ErrorException("There was an issue retrieving transcoding profiles", exception); } return(profiles); }
public List <IProfileModel> Any(GetProfiles request) { return(workflow.Search(request)); }