How to create the below code for EXCHANGE SERVER version like 2007_sp1 and 2013_sp1, in co-existence scenario.
esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2007_SP1;
esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2013_SP1;
The code should redirect the request depending on the location of Mailbox.