File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
dotnet/src/webdriver/BiDi/WebExtension Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 2121
2222namespace OpenQA . Selenium . BiDi . WebExtension ;
2323
24- public class Extension
24+ public sealed class Extension
2525{
2626 private readonly BiDi _bidi ;
2727
Original file line number Diff line number Diff line change 2222
2323namespace OpenQA . Selenium . BiDi . WebExtension ;
2424
25- internal class InstallCommand ( InstallCommandParameters @params )
25+ internal sealed class InstallCommand ( InstallCommandParameters @params )
2626 : Command < InstallCommandParameters , InstallResult > ( @params , "webExtension.install" ) ;
2727
28- internal record InstallCommandParameters( ExtensionData ExtensionData ) : CommandParameters ;
28+ internal sealed record InstallCommandParameters( ExtensionData ExtensionData ) : CommandParameters ;
2929
3030[ JsonPolymorphic ( TypeDiscriminatorPropertyName = "type" ) ]
3131[ JsonDerivedType ( typeof ( ExtensionArchivePath ) , "archivePath" ) ]
3232[ JsonDerivedType ( typeof ( ExtensionBase64Encoded ) , "base64" ) ]
3333[ JsonDerivedType ( typeof ( ExtensionPath ) , "path" ) ]
3434public abstract record ExtensionData;
3535
36- public record ExtensionArchivePath( string Path ) : ExtensionData ;
36+ public sealed record ExtensionArchivePath( string Path ) : ExtensionData ;
3737
38- public record ExtensionBase64Encoded( string Value ) : ExtensionData ;
38+ public sealed record ExtensionBase64Encoded( string Value ) : ExtensionData ;
3939
40- public record ExtensionPath( string Path ) : ExtensionData ;
40+ public sealed record ExtensionPath( string Path ) : ExtensionData ;
4141
42- public record InstallOptions : CommandOptions ;
42+ public sealed record InstallOptions : CommandOptions ;
4343
44- public record InstallResult( Extension Extension ) : EmptyResult ;
44+ public sealed record InstallResult( Extension Extension ) : EmptyResult ;
Original file line number Diff line number Diff line change 2121
2222namespace OpenQA . Selenium . BiDi . WebExtension ;
2323
24- internal class UninstallCommand ( UninstallCommandParameters @params )
24+ internal sealed class UninstallCommand ( UninstallCommandParameters @params )
2525 : Command < UninstallCommandParameters , EmptyResult > ( @params , "webExtension.uninstall" ) ;
2626
27- internal record UninstallCommandParameters( Extension Extension ) : CommandParameters ;
27+ internal sealed record UninstallCommandParameters( Extension Extension ) : CommandParameters ;
2828
29- public record UninstallOptions : CommandOptions ;
29+ public sealed record UninstallOptions : CommandOptions ;
You can’t perform that action at this time.
0 commit comments