public PostListViewModel(INavigationService navigationService, IPostSummaryServiceClient serviceClient, IWindowManager vmManager, IProgressBar progressBar, IReactiveLoader loader) { this.navigationService = navigationService; this.serviceClient = serviceClient; this.vmManager = vmManager; this.progressBar = progressBar; this.loader = loader; PostSummaries = new ObservableCollection <PostSummary>(); ObserverInitialize(); }
public PostDetailsViewModel(INavigationService navigationService, IPostServiceClient serviceClient, ICommentServiceClient commentServiceClient, IWindowManager windowManager, IProgressBar progressBar, IReactiveLoader loader) { this.navigationService = navigationService; this.serviceClient = serviceClient; this.commentServiceClient = commentServiceClient; this.windowManager = windowManager; this.progressBar = progressBar; this.loader = loader; Comments = new ObservableCollection <Comment>(); ObserverInitialize(); }
static void Main(string[] args) { Container container = Bootstrapper.Initialize(); dbInitializator = container.GetInstance <IDbInitializator>(); pulseService = container.GetInstance <IPulseRunner>(); loader = container.GetInstance <IReactiveLoader>(); ObserverInitialize(); DbInit().Wait(); Pulse().Wait(); foreach (ItemWithStatus i in items) { Console.Write(messagePattern, i.Item.Name, i.Status, Environment.NewLine); } loader.RegisterObserver(reactiveObserver); Console.ReadKey(); }