Skip to content

Commit 121374c

Browse files
committed
Updated to v0.9.7
1 parent 64aeebf commit 121374c

File tree

4 files changed

+9
-30
lines changed

4 files changed

+9
-30
lines changed

src/AngleSharp.Scripting.CSharp/AngleSharp.Scripting.CSharp.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@
4040
<Compile Include="InternalHelpers.cs" />
4141
<Compile Include="Properties\AssemblyInfo.cs" />
4242
<Compile Include="WindowContext.cs" />
43-
<Compile Include="WindowService.cs" />
4443
</ItemGroup>
4544
<ItemGroup>
46-
<Reference Include="AngleSharp, Version=0.9.6.41832, Culture=neutral, PublicKeyToken=e83494dcdc6d31ea, processorArchitecture=MSIL">
47-
<HintPath>..\packages\AngleSharp.0.9.6\lib\portable-windows8+net45+windowsphone8+wpa\AngleSharp.dll</HintPath>
45+
<Reference Include="AngleSharp, Version=0.9.7.82, Culture=neutral, PublicKeyToken=e83494dcdc6d31ea, processorArchitecture=MSIL">
46+
<HintPath>..\packages\AngleSharp.0.9.7\lib\portable-windows8+net45+windowsphone8+wpa+monoandroid+monotouch\AngleSharp.dll</HintPath>
4847
<Private>True</Private>
4948
</Reference>
5049
</ItemGroup>

src/AngleSharp.Scripting.CSharp/Extensions.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ public static dynamic GetDynamicDocument(this IBrowsingContext context)
4040
/// <returns>The new configuration with the supplied service.</returns>
4141
public static IConfiguration WithWindowContext(this IConfiguration configuration, Func<IWindow, WindowContext> creator)
4242
{
43-
var service = new WindowService(creator);
44-
return configuration.With(service);
43+
return configuration.With<IWindow>(context =>
44+
{
45+
var window = creator.Invoke(context.Current);
46+
window.Run();
47+
return window;
48+
});
4549
}
4650
}
4751
}

src/AngleSharp.Scripting.CSharp/WindowService.cs

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="AngleSharp" version="0.9.6" targetFramework="portable-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10" />
3+
<package id="AngleSharp" version="0.9.7" targetFramework="portable45-net45+win8+wp8+wpa81" />
44
</packages>

0 commit comments

Comments
 (0)