Exemple #1
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("databaseName");
     writer.WriteStringValue(DatabaseName);
     writer.WritePropertyName("edition");
     writer.WriteStringValue(Edition.ToString());
     writer.WritePropertyName("serviceObjectiveName");
     writer.WriteStringValue(ServiceObjectiveName.ToString());
     writer.WritePropertyName("maxSizeBytes");
     writer.WriteStringValue(MaxSizeBytes);
     writer.WritePropertyName("storageKeyType");
     writer.WriteStringValue(StorageKeyType.ToSerialString());
     writer.WritePropertyName("storageKey");
     writer.WriteStringValue(StorageKey);
     writer.WritePropertyName("storageUri");
     writer.WriteStringValue(StorageUri);
     writer.WritePropertyName("administratorLogin");
     writer.WriteStringValue(AdministratorLogin);
     writer.WritePropertyName("administratorLoginPassword");
     writer.WriteStringValue(AdministratorLoginPassword);
     if (Optional.IsDefined(AuthenticationType))
     {
         writer.WritePropertyName("authenticationType");
         writer.WriteStringValue(AuthenticationType.Value.ToSerialString());
     }
     writer.WriteEndObject();
 }
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("storageKeyType");
     writer.WriteStringValue(StorageKeyType.ToSerialString());
     writer.WritePropertyName("storageKey");
     writer.WriteStringValue(StorageKey);
     writer.WritePropertyName("storageUri");
     writer.WriteStringValue(StorageUri);
     writer.WritePropertyName("administratorLogin");
     writer.WriteStringValue(AdministratorLogin);
     writer.WritePropertyName("administratorLoginPassword");
     writer.WriteStringValue(AdministratorLoginPassword);
     if (Optional.IsDefined(AuthenticationType))
     {
         writer.WritePropertyName("authenticationType");
         writer.WriteStringValue(AuthenticationType.Value.ToSerialString());
     }
     writer.WriteEndObject();
 }