Need help w/query of historical data with C# API: BarSetRequest

A normal BarSetRequest is easy to do:

var barSet = await dataClient.GetBarSetAsync(
					   new BarSetRequest(symbol, TimeFrame.Day) { Limit = 60 } );

But I haven’t been able to find any C# examples for querying an arbitrary datetime range. I believe the time interval is supposed to be passed as parameters, but I’m a C# amateur so I can’t figure it out by looking at the API source.

If someone could help me out with an example that allows me to define start and end date, I’d appreciate it.

Thanks.

Update. I was able to get it to work like so:

// omitting Limit completely gave me an exception crash.
var bsr = new BarSetRequest(_symbol, TimeFrame.Day) { Limit = 300 };

var from = new DateTime(2010, 1, 1, 1, 1, 1, DateTimeKind.Utc);
var to = new DateTime(2011, 1, 1, 1, 1, 1, DateTimeKind.Utc);
bsr.SetInclusiveTimeInterval(from, to);

var barSet = await dataClient.GetBarSetAsync(bsr);