Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
1.1 KiB

// ==========================================================================
// EnvelopeHeaders.cs
// PinkParrot Headless CMS
// ==========================================================================
// Copyright (c) PinkParrot Group
// All rights reserved.
// ==========================================================================
namespace PinkParrot.Infrastructure.CQRS
{
public sealed class EnvelopeHeaders : PropertiesBag
{
public EnvelopeHeaders()
{
}
public EnvelopeHeaders(PropertiesBag bag)
{
if (bag == null)
{
return;
}
foreach (var property in bag.Properties)
{
Set(property.Key, property.Value.RawValue);
}
}
public EnvelopeHeaders Clone()
{
var clone = new EnvelopeHeaders();
foreach (var property in Properties)
{
clone.Set(property.Key, property.Value.RawValue);
}
return clone;
}
}
}