Asynchronous Threads

Discussion in 'Windows / IIS' started by Quinn, May 20, 2015.

  1. I'm trying to create youtube playlists asynchronously using the code below.
    Should Windows 2012 be able to support this? Do I need to make any changes
    to the IIS setup?


    public new async Task<string> CreatePlaylistOfAlbums(Concert[] concerts,
    string szStartOfPlaylistTitle)

    {

    Google.Apis.Auth.OAuth2.UserCredential credential;


    credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(

    new ClientSecrets

    {

    ClientId = YOUTUBE_CLIENT_ID,

    ClientSecret = YOUTUBE_CLIENT_SECRET

    },

    new[] { YouTubeService.Scope.Youtube },

    "user",

    CancellationToken.None,

    new FileDataStore(this.GetType().ToString()));


    var youtubeService = new YouTubeService(new
    BaseClientService.Initializer()

    {

    HttpClientInitializer = credential,

    ApplicationName = this.GetType().ToString()

    });
     
  2. FrankC

    FrankC DiscountASP.NET Staff

    yes. this should work.
     
  3. Any tips to get it working? It works on my Windows 8 computer, but not on the server.
     
  4. mjp

    mjp

    Are you getting an error message?
     
  5. Nope. It's all running behind the scenes.
     
  6. FrankC

    FrankC DiscountASP.NET Staff

    we are shooting in the blind then.. you'll need to add some logging.
     

Share This Page