public static AcquireTokenInteractiveParameterBuilder WithUnoHelpers(this AcquireTokenInteractiveParameterBuilder builder)
        {
#if __WASM__
            builder.WithCustomWebUi(WasmWebUi.Instance);
#elif __MACOS__
            builder.WithParentActivityOrWindow(Windows.UI.Xaml.Window.Current.Content.Window);
#endif
            return(builder);
        }
예제 #2
0
        public static AcquireTokenInteractiveParameterBuilder WithUnoHelpers(this AcquireTokenInteractiveParameterBuilder builder)
        {
#if __WASM__
            builder.WithCustomWebUi(WasmWebUi.Instance);
#elif __MACOS__
#if NET6_0_OR_GREATER
            // WithUnoHelpers is not yet supported for macOS on .NET 6
            // builder.WithParentActivityOrWindow(Windows.UI.Xaml.Window.Current.Content.Window);
#else
            builder.WithParentActivityOrWindow(Windows.UI.Xaml.Window.Current.Content.Window);
#endif
#endif
            return(builder);
        }