public StreamDeckHost(IStreamDeckConnection streamDeckConnection, IStreamDeckConfiguration configuration, IServiceProvider serviceProvider, ILogger <StreamDeckHost> logger) { this.streamDeckConnection = streamDeckConnection; this.configuration = configuration; this.serviceProvider = serviceProvider; this.logger = logger; }
public Task Disconnect() { // kill emulator process too here var con = connection; connection = null; return(con?.Disconnect() ?? Task.CompletedTask); }
public StreamDeckPluginManager(IStreamDeckConnection streamDeckConnection) { this.streamDeckConnection = streamDeckConnection; streamDeckConnection.Listen <DidReceiveGlobalSettingsEvent>(s => { this.CurrentSettings = s.Settings.Settings; return(Task.CompletedTask); }); }
/// <summary> /// Initializes a new instance of the <see cref="AudioBufferRestartService"/> class. /// </summary> /// <param name="connection">The connection to the Stream Deck.</param> /// <param name="audioService">The audio service.</param> public AudioBufferRestartService(IStreamDeckConnection connection, IAudioService audioService) { this.AudioService = audioService; this.Connection = connection; }
public StreamDeckActionManagerProvider(IStreamDeckConnection connection, IServiceProvider serviceProvider, EventManager eventManager) { this.eventManager = eventManager;; this.connection = connection; this.serviceProvider = serviceProvider; }