mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-16 06:31:42 +02:00
.github
.idea
bld
lib
TweetLib.Api
TweetLib.Browser
Base
BaseBrowser.cs
BrowserSetup.cs
Contexts
Events
Interfaces
Request
Lib.cs
TweetLib.Browser.csproj
TweetLib.Browser.CEF
TweetLib.Communication
TweetLib.Core
TweetLib.Utils
TweetTest.Browser.CEF
TweetTest.Core
TweetTest.Utils
linux
resources
windows
.gitattributes
.gitignore
LICENSE.md
README.md
TweetDuck.sln
TweetDuck.sln.DotSettings
Version.cs
global.json
16 lines
442 B
C#
16 lines
442 B
C#
using System;
|
|
using TweetLib.Browser.Interfaces;
|
|
|
|
namespace TweetLib.Browser.Base {
|
|
public class BaseBrowser<T> : IDisposable where T : BaseBrowser<T> {
|
|
protected readonly IBrowserComponent browserComponent;
|
|
|
|
protected BaseBrowser(IBrowserComponent browserComponent, Func<T, BrowserSetup> setup) {
|
|
this.browserComponent = browserComponent;
|
|
this.browserComponent.Setup(setup((T) this));
|
|
}
|
|
|
|
public virtual void Dispose() {}
|
|
}
|
|
}
|