static void SendWoMDirectBeat() { HeartbeatData data = new HeartbeatData( WoMDirectUri ); // we dont want WoM redirecting back to minecraft.net data.CustomData["noforward"] = "1"; if( !RaiseHeartbeatSendingEvent( data, WoMDirectUri, false ) ) { return; } womDirectRequest = CreateRequest( data.CreateUri() ); var state = new HeartbeatRequestState( womDirectRequest, data, false ); womDirectRequest.BeginGetResponse( ResponseCallback, state ); }
static void SendMinecraftNetBeat() { HeartbeatData data = new HeartbeatData( MinecraftNetUri ); if( !RaiseHeartbeatSendingEvent( data, MinecraftNetUri, true ) ) { return; } minecraftNetRequest = CreateRequest( data.CreateUri() ); var state = new HeartbeatRequestState( minecraftNetRequest, data, true ); minecraftNetRequest.BeginGetResponse( ResponseCallback, state ); }