Skip to content
Open
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
11 changes: 11 additions & 0 deletions src/ZeroMQ/Devices/DeviceSocketSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,17 @@ public DeviceSocketSetup SetSocketOption(Expression<Func<ZmqSocket, byte[]>> pro
return SetSocketOption<byte[]>(property, value);
}

/// <summary>
/// Set a action based socket option.
/// </summary>
/// <param name="property">The <see cref="ZmqSocket"/> property to call.</param>
/// <returns>The current <see cref="DeviceSocketSetup"/> object.</returns>
public DeviceSocketSetup SetSocketOption(Action<ZmqSocket> property)
{
_socketInitializers.Add(property);
return this;
}

/// <summary>
/// Set a <see cref="TimeSpan"/>-based socket option.
/// </summary>
Expand Down