Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/ChromeDevTools/IChromeProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public interface IChromeProcess : IDisposable

Task<ChromeSessionInfo> StartNewSession();

Task CloseSession(string sessionId);

Uri RemoteDebuggingUri { get; }
}
}
2 changes: 1 addition & 1 deletion source/ChromeDevTools/IChromeSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public interface ICommand<T>
{

}
public interface IChromeSession
public interface IChromeSession : IDisposable
{
Task<CommandResponse<TResponse>> SendAsync<TResponse>(ICommand<TResponse> parameter, CancellationToken cancellationToken);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<TargetFrameworks>netstandard1.5;net45</TargetFrameworks>
<VersionPrefix>1.0.3</VersionPrefix>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand All @@ -22,6 +21,7 @@
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
<PackageReference Include="System.Net.Http" Version="4.3.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.4.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.5'">
Expand Down
5 changes: 5 additions & 0 deletions source/ChromeDevTools/RemoteChromeProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@ public async Task<ChromeSessionInfo> StartNewSession()
string json = await http.GetStringAsync("/json/new");
return JsonConvert.DeserializeObject<ChromeSessionInfo>(json);
}

public async Task CloseSession(string sessionId)
{
await http.GetAsync($"/json/close/{sessionId}");
}
}
}