Smrf.NodeXL.GraphDataProviders.Twitter.TwitterSearchNetworkAnalyzer.GetNetworkAsync C# (CSharp) Method

GetNetworkAsync() public method

public GetNetworkAsync ( String searchTerm, WhatToInclude whatToInclude, Int32 maximumStatuses ) : void
searchTerm String
whatToInclude WhatToInclude
maximumStatuses System.Int32
return void
    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);
    }