Beispiel #1
0
        static async Task <int> Main(string[] args)
        {
            if (args.Any(arg => arg.ToLower() == "--generatemanifest"))
            {
                return(await StreamDeckHost.GenerateManifest());
            }

            return(await CreateStreamDeckHost(args)
                   .Build()
                   .RunAsync());
        }
Beispiel #2
0
 static IStreamDeckHostBuilder CreateStreamDeckHost(string[] args) =>
 StreamDeckHost.CreateDefaultStreamDeckHost(args)
 .UseStartup <Startup>();
 public StreamDeckHostTests()
 {
     this.connectionMock.Setup(x => x.Listen(It.IsAny <Func <WillAppearEvent, Task> >())).Returns(willAppearListenerMock.Object);
     this.connectionMock.Setup(x => x.Listen(It.IsAny <Func <WillDisappearEvent, Task> >())).Returns(willDisappearListenerMock.Object);
     this.host = new StreamDeckHost(this.connectionMock.Object, this.configuration.Object, this.services, logger);
 }