|
|
@ -14,11 +14,6 @@ namespace Squidex.Events |
|
|
{ |
|
|
{ |
|
|
public static class EventExtensions |
|
|
public static class EventExtensions |
|
|
{ |
|
|
{ |
|
|
public static bool HasAppId(this EnvelopeHeaders headers) |
|
|
|
|
|
{ |
|
|
|
|
|
return headers.Contains("AppId"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Guid AppId(this EnvelopeHeaders headers) |
|
|
public static Guid AppId(this EnvelopeHeaders headers) |
|
|
{ |
|
|
{ |
|
|
return headers["AppId"].ToGuid(CultureInfo.InvariantCulture); |
|
|
return headers["AppId"].ToGuid(CultureInfo.InvariantCulture); |
|
|
@ -31,11 +26,6 @@ namespace Squidex.Events |
|
|
return envelope; |
|
|
return envelope; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static bool HasSchemaId(this EnvelopeHeaders headers) |
|
|
|
|
|
{ |
|
|
|
|
|
return headers.Contains("SchemaId"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Guid SchemaId(this EnvelopeHeaders headers) |
|
|
public static Guid SchemaId(this EnvelopeHeaders headers) |
|
|
{ |
|
|
{ |
|
|
return headers["SchemaId"].ToGuid(CultureInfo.InvariantCulture); |
|
|
return headers["SchemaId"].ToGuid(CultureInfo.InvariantCulture); |
|
|
|