GetNetworkAsync
(
String searchTerm,
WhatToInclude whatToInclude,
Int32 maximumStatuses
)
{
Debug.Assert( !String.IsNullOrEmpty(searchTerm) );
Debug.Assert(maximumStatuses > 0);
Debug.Assert(maximumStatuses != Int32.MaxValue);
AssertValid();
const String MethodName = "GetNetworkAsync";
CheckIsBusy(MethodName);
// Wrap the arguments in an object that can be passed to
// BackgroundWorker.RunWorkerAsync().
GetNetworkAsyncArgs oGetNetworkAsyncArgs = new GetNetworkAsyncArgs();
oGetNetworkAsyncArgs.SearchTerm = searchTerm;
oGetNetworkAsyncArgs.WhatToInclude = whatToInclude;
oGetNetworkAsyncArgs.MaximumStatuses = maximumStatuses;
m_oBackgroundWorker.RunWorkerAsync(oGetNetworkAsyncArgs);
}