public async Task <IEnumerable <LivePendingUpload> > GetPendingUploads() { LiveConnectSessionStatus connectStatus; if (client != null || (connectStatus = await Connect()) == LiveConnectSessionStatus.Connected) { return(client.GetPendingBackgroundUploads()); } return(Enumerable.Empty <LivePendingUpload>()); }
public static IEnumerable <LivePendingUpload> GetPendingUploads() { if (_session != null) { LiveConnectClient client = new LiveConnectClient(_session); return(client.GetPendingBackgroundUploads()); } return(null); }