static PnrpPeerResolver()
 {
     using (UnsafePnrpNativeMethods.DiscoveryBase base2 = new UnsafePnrpNativeMethods.DiscoveryBase())
     {
         isPnrpInstalled = base2.IsPnrpInstalled();
         isPnrpAvailable = base2.IsPnrpAvailable(TimeToWaitForStatus);
     }
 }
 static PnrpPeerResolver()
 {
     // determine if PNRP is installed
     isPnrpAvailable = false;
     using (UnsafePnrpNativeMethods.DiscoveryBase db = new UnsafePnrpNativeMethods.DiscoveryBase())
     {
         isPnrpInstalled = db.IsPnrpInstalled();
         isPnrpAvailable = db.IsPnrpAvailable(TimeToWaitForStatus);
     }
 }