Skip to content

Commit

Permalink
Align DevHomeSDK to API Review doc (microsoft#1463)
Browse files Browse the repository at this point in the history
* align DevHomeSDK to API Review doc

* fix MIDL error

* fix MIDL error correction
  • Loading branch information
ssparach authored Aug 31, 2023
1 parent ba6a41b commit e784ddc
Showing 1 changed file with 29 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,37 +156,6 @@ namespace Microsoft.Windows.DevHome.SDK
};
};

// Developer ID
[contract(Microsoft.Windows.DevHome.SDK.DevHomeContract, 1)] interface IDeveloperIdProvider
requires Windows
.Foundation.IClosable
{
String DisplayName
{
get;
};

//DeveloperIdsResult GetLoggedInDeveloperIds();

ProviderOperationResult LogoutDeveloperId(IDeveloperId developerId);

event Windows.Foundation.TypedEventHandler<IDeveloperIdProvider, Object> Changed;

AuthenticationState DeveloperIdState
{
get;
};

// The extension chooses to support one enum Option. Once defined by the extension this value cannot be // changed by DevHome or the extension itself.
AuthenticationExperienceKind GetAuthenticationExperienceKind();

//ExtensionProvidedExperience
Windows.Foundation.IAsyncOperation<DeveloperIdResult> ShowLogonSession(Microsoft.UI.WindowId windowHandle);

//DevHomeIntegratedCard
AdaptiveCardSessionResult GetLoginAdaptiveCardSession();
};

[contract(Microsoft.Windows.DevHome.SDK.DevHomeContract, 1)] runtimeclass DeveloperIdResult {
DeveloperIdResult(IDeveloperId developerId);
DeveloperIdResult(HRESULT e, String diagnosticText);
Expand Down Expand Up @@ -228,6 +197,35 @@ namespace Microsoft.Windows.DevHome.SDK
};
};

// Developer ID
[contract(Microsoft.Windows.DevHome.SDK.DevHomeContract, 1)] interface IDeveloperIdProvider
requires Windows
.Foundation.IClosable
{
String DisplayName
{
get;
};

DeveloperIdsResult GetLoggedInDeveloperIds();

ProviderOperationResult LogoutDeveloperId(IDeveloperId developerId);

event Windows.Foundation.TypedEventHandler<IDeveloperIdProvider, IDeveloperId> Changed;

AuthenticationState GetDeveloperIdState(IDeveloperId developerId);

// The extension chooses to support one enum Option. Once defined by the extension this value cannot be
// changed by DevHome or the extension itself.
AuthenticationExperienceKind GetAuthenticationExperienceKind();

//ExtensionProvidedExperience
Windows.Foundation.IAsyncOperation<DeveloperIdResult> ShowLogonSession(Microsoft.UI.WindowId windowHandle);

//DevHomeIntegratedCard
AdaptiveCardSessionResult GetLoginAdaptiveCardSession();
};

// Settings
[contract(Microsoft.Windows.DevHome.SDK.DevHomeContract, 1)] interface ISettingsProvider
requires Windows
Expand Down

0 comments on commit e784ddc

Please sign in to comment.