![]() ![]() If (!IsValidSessionKeyFormat(EncKey) || !IsValidSessionKeyFormat(MacKey)) Var secureChannel = new (reader) Ĭ("Establishing Secure Session") Var reader = new SmartCardReader(readerName) RootPage.NotifyUser("TPM virtual smartcard deletion failed with exception: " + ex.ToString(), NotifyType.ErrorMessage) RootPage.NotifyUser("TPM virtual smart card deletion was canceled by the user.", NotifyType.StatusMessage) RootPage.NotifyUser("TPM virtual smart card deletion completed.", NotifyType.StatusMessage) the function signature match the template arguments forīool result = await SmartCardProvisioning.RequestVirtualSmartCardDeletionAsync(card) will be automatically boxed in a TypedEventHandler, but HandleCardRemoved method as an event handler. which we are adding the event handler. We must retain a reference to the SmartCardReader object to removed from the reader, but a CardRemoved event will fire card in this case, the card cannot actually be added to or CardRemoved events by registering an event handler with a smart card creation, but are used to demonstrate how to handle The following two lines are not directly related to TPM virtual SmartCard card = await rootPage.GetSmartCard() ![]() RootPage.NotifyUser("Deleting the TPM virtual smart card.", NotifyType.ErrorMessage) RootPage.NotifyUser("Use Scenario One to create a TPM virtual smart card.", NotifyType.ErrorMessage) Private async void Delete_Click(object sender, RoutedEventArgs e) / Click handler for the 'Delete' button. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |