pr1/presence/Presence.Desktop/ViewModels/MainWindowViewModel.cs

23 lines
789 B
C#
Raw Normal View History

2024-12-23 09:12:26 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
2024-12-19 17:36:57 +00:00
using Microsoft.Extensions.DependencyInjection;
2024-12-23 09:12:26 +00:00
using presence.data.RemoteData.RemoteDataBase;
using presence.domain.UseCase;
2024-12-19 17:36:57 +00:00
using ReactiveUI;
namespace Presence.Desktop.ViewModels
2024-12-05 09:30:01 +00:00
{
2024-12-19 17:36:57 +00:00
public class MainWindowViewModel : ViewModelBase, IScreen
2024-12-05 09:30:01 +00:00
{
2024-12-19 17:36:57 +00:00
public RoutingState Router { get; } = new RoutingState();
public MainWindowViewModel(IServiceProvider serviceProvider)
{
2024-12-23 09:12:26 +00:00
var groupUseCase = serviceProvider.GetRequiredService<GroupUseCase>();
var presenceUseCase = serviceProvider.GetRequiredService<PresenceUseCase>();
var remoteDatabaseContext = serviceProvider.GetRequiredService<RemoteDatabaseContext>();
2024-12-19 17:36:57 +00:00
}
2024-12-05 09:30:01 +00:00
}
2024-12-19 17:36:57 +00:00
}