using System.Windows;
using Autofac;
using HybirdFrameworkCore.Autofac;
using log4net;
using Service.System;
namespace WpfStarter;
///
/// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
private static readonly ILog Log = LogManager.GetLogger(typeof(MainWindow));
private readonly SysUserService _sysUserServices;
public MainWindow()
{
InitializeComponent();
_sysUserServices = AppInfo.Container.Resolve();
}
private void TestClick(object sender, RoutedEventArgs e)
{
var sysUsers = _sysUserServices.Query();
MessageBox.Show($"count={sysUsers.Count}");
Log.Info($"count={sysUsers.Count}");
}
}