public ServerLibraryShadow(IServerInterface serverInterface, IMessageQueue messageQueue) { this.serverInterface = serverInterface; this.messageQueue = messageQueue; this.stateChecker = new PeriodicWorkDispatcher(messageQueue, 5000, UpdateLibrary); }
public ServerPlaylistShadow(IServerInterface serverInterface, IMessageQueue messageQueue) { this.serverInterface = serverInterface; this.messageQueue = messageQueue; actualPlaylist = new List <MultimediaItem>(); this.stateChecker = new PeriodicWorkDispatcher(messageQueue, 5000, UpdatePlaylist); }
public ServerPlayerShadow(IServerInterface serverInterface, IMessageQueue messageQueue) { this.serverInterface = serverInterface; this.messageQueue = messageQueue; this.playing = false; this.activeMultimedia = null; this.playbackPosition = 0; this.stateChecker = new PeriodicWorkDispatcher(messageQueue, 5000, UpdatePlayer); }