public ServerInformationMulticast(IWebHostEnvironment env, MessengerOptions messengerOptions, MusicServerOptions serverOptions, Messenger messenger, CancellationToken cancellationToken, ILoggerFactory loggerFactory)
 {
     Debug.Assert(messengerOptions != null);
     Debug.Assert(serverOptions != null);
     Debug.Assert(messenger != null);
     this.environment        = env;
     this.messengerOptions   = messengerOptions;
     this.musicServerOptions = serverOptions;
     this.lf                = loggerFactory;
     this.messenger         = messenger;
     this.log               = lf.CreateLogger <ServerInformationMulticast>();// log;
     this.cancellationToken = cancellationToken;
     InitialiseServerInformation();
 }
Exemple #2
0
        public PlayManager(IHubContext <PlayHub, IHubMessage> playHub, IServiceProvider serviceProvider,
                           IWebHostEnvironment env,
                           IOptions <MusicServerOptions> serverOptions, Messenger messenger, IOptions <MessengerOptions> messengerOptions,
                           ILogger <PlayManager> log, ILoggerFactory loggerFactory) : base(log)
        {
            this.messengerOptions   = messengerOptions.Value;
            this.playHub            = playHub;
            this.serviceProvider    = serviceProvider;
            this.musicServerOptions = serverOptions.Value;
            this.environment        = env;

            this.messenger = messenger;
            this.messenger.EnableMulticastSend();
            this.lf       = loggerFactory;
            this.taskList = new List <Task>();
            this.devices  = new Dictionary <string, DeviceRuntime>();
        }
Exemple #3
0
 public KeepAgentsAlive(MusicServerOptions serverOptions, CancellationToken cancellationToken, ILoggerFactory loggerFactory)
 {
     this.musicServerOptions = serverOptions;
     this.lf  = loggerFactory;
     this.log = lf.CreateLogger <KeepAgentsAlive>();// log;
 }