示例#1
0
        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();
            }
        }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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)
 {
 }