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: 1 addition & 1 deletion DebugSourceGenerator/DebugSourceGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Tmds.DBus.Protocol" Version="0.21.2" />
<PackageReference Include="Tmds.DBus.Protocol" Version="0.23.0" />
<ProjectReference Include="../Tmds.DBus.SourceGenerator/Tmds.DBus.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

Expand Down
12 changes: 5 additions & 7 deletions Tmds.DBus.SourceGenerator/DBusSourceGenerator.Classes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,21 +106,22 @@ internal interface IDBusInterfaceHandler
#nullable enable
namespace Tmds.DBus.SourceGenerator
{
internal class PathHandler : IMethodHandler
internal class PathHandler : IPathMethodHandler
{
private readonly bool _runMethodHandlerSynchronously;
private readonly ICollection<IDBusInterfaceHandler> _dbusInterfaces;

public PathHandler(string path, bool runMethodHandlerSynchronously = true)
public PathHandler(string path)
{
Path = path;
_runMethodHandlerSynchronously = runMethodHandlerSynchronously;
_dbusInterfaces = new List<IDBusInterfaceHandler>();
}

/// <inheritdoc />
public string Path { get; }

/// <inheritdoc />
public bool HandlesChildPaths => false;

/// <inheritdoc />
public async ValueTask HandleMethodAsync(MethodContext context)
{
Expand Down Expand Up @@ -195,9 +196,6 @@ void Reply()
}
}

/// <inheritdoc />
public bool RunMethodHandlerSynchronously(Message message) => _runMethodHandlerSynchronously;

/// <inheritdoc />
public void Add(IDBusInterfaceHandler item)
{
Expand Down
2 changes: 1 addition & 1 deletion Tmds.DBus.SourceGenerator/Tmds.DBus.SourceGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>0.0.22</Version>
<Version>0.0.23</Version>
<PackageId>Tmds.DBus.SourceGenerator</PackageId>
<Authors>affederaffe</Authors>
<Copyright>affederaffe</Copyright>
Expand Down