StyleSheetLinkRelation
using AngleSharp.Dom;
using AngleSharp.Html.Dom;
using AngleSharp.Io.Processors;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace AngleSharp.Html.LinkRels
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
internal class StyleSheetLinkRelation : BaseLinkRelation
{
[System.Runtime.CompilerServices.Nullable(2)]
public IStyleSheet Sheet {
[System.Runtime.CompilerServices.NullableContext(2)]
get {
return (base.Processor as StyleSheetRequestProcessor)?.Sheet;
}
}
public StyleSheetLinkRelation(IHtmlLinkElement link)
: base(link, new StyleSheetRequestProcessor(link.Owner.Context, link))
{
}
[AsyncStateMachine(typeof(<LoadAsync>d__3))]
public override Task LoadAsync()
{
<LoadAsync>d__3 stateMachine = default(<LoadAsync>d__3);
stateMachine.<>t__builder = AsyncTaskMethodBuilder.Create();
stateMachine.<>4__this = this;
stateMachine.<>1__state = -1;
stateMachine.<>t__builder.Start(ref stateMachine);
return stateMachine.<>t__builder.Task;
}
}
}