Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_watcher = ESimManager.TryCreateESimWatcher() alway return null #4834

Open
MrR0990 opened this issue Oct 29, 2024 · 0 comments
Open

_watcher = ESimManager.TryCreateESimWatcher() alway return null #4834

MrR0990 opened this issue Oct 29, 2024 · 0 comments
Labels
area-External area-Networking Support for networking functionality

Comments

@MrR0990
Copy link

MrR0990 commented Oct 29, 2024

Describe the bug

_watcher = ESimManager.TryCreateESimWatcher() alway return null but same code in UWP ,it run normal

Steps to reproduce the bug

` public sealed partial class MainWindow : Window
{
private Microsoft.UI.Windowing.AppWindow? _appWindow;

 public MainWindow()
 {
     this.InitializeComponent();
     MainPage_Loaded();
 }


 

 private void MainPage_Loaded()

 {

     Logger.Log("+++ MainPage_Loaded");


     _context = SynchronizationContext.Current;
     _watcher = ESimManager.TryCreateESimWatcher();

     if (_watcher != null)
     {

         _watcher.Added += (s, ea) => { _eSims[ea.ESim.Eid] = ea.ESim; };

         _watcher.EnumerationCompleted += EsimEnumerationCompleted;

         _watcher.Start();

     }
     else
     {
         Logger.Log("cannot create eSIM watcher");
     }

 }`

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-External area-Networking Support for networking functionality
Projects
None yet
Development

No branches or pull requests

2 participants