public async Task SigningRevokeClikc_should_revoke_key() { await Fixture.DbActionAsync <OperationalDbContext>(async context => { var id = Guid.NewGuid(); await context.KeyRotationKeys.AddAsync(new KeyRotationKey { FriendlyName = $"key-{id}", Xml = @$ "<key id=" "{id}" " version=" "1" "> <creationDate>2020-10-08T07:44:21.391891Z</creationDate> <activationDate>2020-10-08T07:44:21.3792973Z</activationDate> <expirationDate>2020-10-22T07:44:21.3792973Z</expirationDate> <descriptor deserializerType=" "Aguacongas.IdentityServer.KeysRotation.RsaEncryptorDescriptorDeserializer, Aguacongas.IdentityServer.KeysRotation, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null" "> <descriptor> <encryption algorithm=" "System.Security.Cryptography.RSA, System.Security.Cryptography.Algorithms, Version = 4.3.2.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" " keyLength=" "2048" "/> <keyId>74A71DC1642A06B8A753E8FCA13EC40A</keyId> <key p4:requiresEncryption=" "true" " xmlns:p4=" "http://schemas.asp.net/2015/03/dataProtection" "> <value>eyJEIjoicFBCU0tPWUdlaTBFcUVmTE5jOG43ZHh4eFluS3Z4dTlEUWE3WTdQVy96bEZQSnBFUEh3MWpKNGVsaEl2KzBJNWNaUDVUMHFpLzdnWm5tZWs4Z2JTbUFUampLNUo1VnA2dWJ5VWFrY25oQ2NBcWxYbERjTkI3U21jMmoyQjUzSWhhYWE5d1U1OUs0NnJhRjhKejIxaHp4dTkwaFNPNUlBcm03enk4TEVoZTdVNlUxWm5zclBWZHpVUWtsNUVqUmt3eDF6dE1yNk5scU13V2RDb2N4Rmt3ZTQ1N1ZjV0JqRDBPODZ5Q0lJdDJVRXdoQkpTUGRjREJOa3lmMzlhZEZHN0V6My9HUkRuS0I4Z2diZHFVRW1zSkl6QmkyYmM5dERVYjArbzVwVThsUStsd0RoSFBsR1dSTUhOdTFPV0JYODYxWGhGY2lINm8xS3ZueGRXNE5JNkZRPT0iLCJEUCI6InFQWGpoQlJZRWdkbkVaNUtYcndobTE2cm9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TWUyTS9yREJFMm05bTNPdjNFNGtTNjdxU2FqZDJIa29TUkpxZWRaRk4xQkY0MDUwU1NRUTkrWkZUUkkzV3llSUcwd2VDeFpnakhyaFl0WUZObDNaVUhRPT0iLCJQIjoiNGtkTGdqei9mVUdMTTB1RThaaDJwTThjLzdJdHBldjBqalMzQ2hoL0dCbVZmN1JGQmhnVWJZSTdFUGlQQzI0ZThDNmxNb01lVG14MlFOQVNSelFaT2x5QWNCTHV2U0RwTkQwczFRa2JmbW1ucE5UbWJncURidVh3NFp0cklJR1dZV2ZqMVUvSmY4dkltaU9LdVQvU3VWMit2Wmg2OVpqaTFrR3ljcUhZWVZjPSIsIlEiOiIvN09EY3ZSVTZxcGJsQW9LejJialdxMGg2V0loVDQ3RmdhbHFDZWZBejFVYWJKOTBXVXVNOCt2eFZZTHV1V2dNR1IvZ0JPTVdna0l2WUtYODFFSmd4aHhnRGlDd0p0VFRrUXVQUWtsYWhHRWp5SERJWGNwaHdDT3VsS2h4cEkrZlpOMEFROWsyQWcyN2IzR3JUeDdHbUptVEVnbXFwMzh0MFVhOU4vU0F5YXM9In0=</value> </key> </descriptor > </descriptor> </key>" }); await context.SaveChangesAsync(); });
private ContentDescriptor m_Descriptor; //The descriptor which this textbox edits.; public DescriptoBox(descriptor ContentDescriptor, ContextMenu ContextMenu, TextChangedHandler EventHandler) { // Builds a DescriptoBox with a specific visual style. It also hooks- // up a TextChanged event handler so the member node and content // descriptor's states can be updated. m_Descriptor = descriptor; this.Multiline = true; this.ContextMenu = ContextMenu; this.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; //Width will be adjusted automatically, but the height will remain static. this.Height = BOX_HEIGHT; //The inital contents of the DescriptoBox is the content of its corresponding content descriptor. this.Text = descriptor.Content; //A descriptor with errors can! be edited, so make the DescriptoBox readonly, otherwise //hook-up the textchanged event handler. if (descriptor.HasErrors) { this.ReadOnly = true; this.ForeColor = Color.Red; } else { this.TextChanged += new System.EventHandler(TextChangedHandler); } }
public static UInt64 GetDescriptorCode(descriptor descriptor) { UInt64 result; string[] strings = descriptor.code.Split(new char[] { ':' }); result = (Convert.ToUInt64(strings[0], 16) << 32) + Convert.ToUInt64(strings[1], 16); return(result); }
emission = Emit(descriptor, root);
public static void ReportDiagnostic(this in GeneratorExecutionContext context, DiagnosticDescriptor descriptor, Location?location = null, params object[] items) => context.ReportDiagnostic(Diagnostic.Create(descriptor, location, items));
return(CreateDiagnosticResult(descriptor, messageArgs, location, extraLocation));
var(descriptor, urlMatches, queryString) = match;
public static UInt64 GetDescriptorCode(descriptor descriptor) { UInt64 result; string[] strings = descriptor.code.Split(new char[] { ':' }); result = (Convert.ToUInt64(strings[0], 16) << 32) + Convert.ToUInt64(strings[1], 16); return result; }