BoxKite.Twitter.Tests.SearchStreamExtensions.StartSearchStream C# (CSharp) Метод

StartSearchStream() публичный статический Метод

public static StartSearchStream ( this session, string track = null, string follow = null, string locations = null ) : ISearchStream
session this
track string
follow string
locations string
Результат ISearchStream
        public static ISearchStream StartSearchStream(this IUserSession session, string track = null, string follow = null, string locations = null)
        {
            var searchStream = new SearchStream();
            searchStream.SearchParameters = searchStream.ChangeSearchParameters(track, follow, locations);
            Func<Task<HttpResponseMessage>> startConnection =
                () =>
                {
                    var resp = ((TestableUserSession)session).MakeResponse();
                    return resp;
                };
           searchStream.CreateOpenConnection = startConnection;
            return searchStream;
        }
    }
SearchStreamExtensions