コード例 #1
0
 /// <summary>Retrieves the protocol level currently used by the CDDB server</summary>
 /// <returns>
 ///   A request that will provide the active protocol level upon completion
 /// </returns>
 public Request <ServerProtocolLevel> GetProtocolLevel()
 {
     Requests.CddbProtocolLevelRequest request = new Requests.CddbProtocolLevelRequest(
         this.protocol
         );
     request.Start();
     return(request);
 }
コード例 #2
0
 /// <summary>Changes the protocol level used by the CDDB server connection</summary>
 /// <param name="newLevel">New protocol level to switch to</param>
 /// <returns>
 ///   A request that will indicate when the protocol level has been changed
 /// </returns>
 public Request ChangeProtocolLevel(int newLevel)
 {
     Requests.CddbProtocolLevelRequest request = new Requests.CddbProtocolLevelRequest(
         this.protocol,
         newLevel,
         new Requests.CddbProtocolLevelRequest.ProtocolLevelNotificationDelegate(
             protocolLevelChanged
             )
         );
     request.Start();
     return(request);
 }