+ Reply to Thread
Results 1 to 4 of 4

Thread: IdSharpHarness.csproj does not compile right out the box.

  1. #1

    Wink IdSharpHarness.csproj does not compile right out the box.

    Hello,
    You might know this, but...

    IdSharpHarness.csproj does still reference IdSharp instead of IdSharp.Common

    In MainForm.cs you have a reference to using IdSharp.Audio; when it should be using IdSharp.AudioInfo;
    using IdSharp.FreeDB; should be using IdSharp.WebLookup.FreeDB;

    And last my real problem...
    List<FreeDBAlbum> albums = FreeDB.Search(audioFiles); at least needs a proxy, so, I don't know how to use it. It seems to work with just List<FreeDBAlbum> albums = FreeDB.Search(audioFiles, new System.Net.WebProxy()); but this might probably not be the correct way to do it

    Just wanted to let you know,
    John.

  2. #2
    Join Date
    Dec 2004
    Location
    Savannah, GA
    Posts
    588

    Default

    Thanks for letting me know about the harness; seems it is not up to date with the rest of the source.

    For the proxy,

    Code:
    IWebProxy proxy = WebRequest.DefaultWebProxy;
    proxy.Credentials = CredentialCache.DefaultCredentials;
    or, place it in a static method

    Code:
    public static IWebProxy GetProxy()
    {
        IWebProxy proxy = WebRequest.DefaultWebProxy;
        proxy.Credentials = CredentialCache.DefaultCredentials;
        return proxy;
    }

  3. #3
    Join Date
    Dec 2004
    Location
    Savannah, GA
    Posts
    588

    Default

    I may use this proxy by default in the future and remove the proxy parameter, since the DefaultProxy can be modified by user code to use a custom proxy/authentication. My only concern is it's not intuitive to modify this framework level object, but would make a good FAQ entry.

  4. #4

    Default

    thank you

    Maybe add it as a default parameter...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts