At.FF.Krems.FullscreenBrowser.WindowManager.GetDocumentCookies C# (CSharp) Method

GetDocumentCookies() public method

Gets the document cookies.
public GetDocumentCookies ( string hostFilter = null ) : List
hostFilter string The host filter.
return List
        public List<Cookie> GetDocumentCookies(string hostFilter = null)
        {
            var data = new List<Cookie>();
            foreach (var geckoBrowser in this.geckoBrowsers)
            {
                data.AddRange(
                    string.IsNullOrWhiteSpace(hostFilter)
                        ? geckoBrowser.DocumentCookies
                        : geckoBrowser.DocumentCookies.Where(
                            x => x.Domain.Equals(hostFilter, StringComparison.OrdinalIgnoreCase)));
            }

            return data;
        }