Example #1
0
        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>();
        }
Example #2
0
 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>();
 }
Example #3
0
        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;
        }