public MainView(Toplevel topLevel) : base(topLevel) { this.topLevel = topLevel; this.colorScheme = Theme.CreateColorScheme(); this.topLevel.ColorScheme = this.colorScheme; this.chatClientConfiguration = App.ServiceProvider.Get <IChatClientConfiguration>(); this.cancellation = App.ServiceProvider.Get <ICancellation>(); }
public SetupView(Toplevel topLevel) : base(topLevel) { this.mainWindow = (Window)topLevel; this.messageBoxService = App.ServiceProvider.Get <IMessageBoxService>(); this.onboardingViewModel = App.ServiceProvider.Get <OnboardingViewModel>(); this.stopwatch = new Stopwatch(); this.xdsSecService = App.ServiceProvider.Get <IXDSSecService>(); this.chatClientConfiguration = App.ServiceProvider.GetService <IChatClientConfiguration>(); this.cancellation = App.ServiceProvider.Get <ICancellation>(); }
public PeerManager(ILoggerFactory loggerFactory, ICancellation cancellation, IChatClientConfiguration chatClientConfiguration, PeerRepository peerRepository, IMessageRelayAddressReceiver messageRelayAddressReceiver) { this.loggerFactory = loggerFactory; this.cancellation = cancellation; this.cancellation.RegisterWorker(this); this.chatClientConfiguration = (ChatClientConfiguration)chatClientConfiguration; this.logger = this.loggerFactory.CreateLogger <PeerManager>(); this.peerRepository = peerRepository; this.messageRelayAddressReceiver = messageRelayAddressReceiver; }