public static string Serialize(this ClientSideEncryptionVersion version) { switch (version) { case ClientSideEncryptionVersion.V1_0: return(ClientSideEncryptionVersionString.V1_0); default: // sanity check; serialize is in this file to make it easy to add the serialization cases throw Errors.ClientSideEncryption.ClientSideEncryptionVersionNotSupported(); } }
/// <summary> /// Initializes a new instance of the <see cref="ClientSideEncryptionOptions"/> class. /// </summary> /// <param name="version">The version of clientside encryption to use.</param> public ClientSideEncryptionOptions(ClientSideEncryptionVersion version) { EncryptionVersion = version; }
/// <summary> /// Initializes a new instance of the <see cref="QueueClientSideEncryptionOptions"/> class. /// </summary> /// <param name="version">The version of clientside encryption to use.</param> public QueueClientSideEncryptionOptions(ClientSideEncryptionVersion version) : base(version) { }