Код: Выделить всё
private static void BeforeRequest(Session session)
{
session.bBufferResponse = true;
if (session.uriContains("productlisting/list"))
{
session.utilSetResponseBody(fastResponseProductListingList);
session.bypassGateway = true;
}
else if (session.uriContains("productlisting/list/tag"))
{
session.utilSetResponseBody(fastResponseStoreProductListingTag);
session.bypassGateway = true;
}
else if (session.uriContains("live/item/listall"))
{
session.utilSetResponseBody(fastResponseItemListAll);
session.bypassGateway = true;
}
else if (session.uriContains("live/store/list"))
{
session.utilSetResponseBody(fastResponseStoreList);
session.bypassGateway = true;
}
}
Пояснено выше
Подробнее здесь: https://stackoverflow.com/questions/791 ... in-c-sharp