public Transformer_MessagesBodyTransformer() { this.ViewText = @"from message in results select new { message = message, metadata = message.ProcessingAttempts != null ? (DynamicEnumerable.LastOrDefault(message.ProcessingAttempts)).MessageMetadata : message.MessageMetadata } into this0 select new { MessageId = this0.metadata[""MessageId""], Body = this0.metadata[""Body""], BodySize = ((int)this0.metadata[""ContentLength""]), ContentType = this0.metadata[""ContentType""], BodyNotStored = ((bool)this0.metadata[""BodyNotStored""]) } "; this.TransformResultsDefinition = results => from message in ((IEnumerable <dynamic>)results) select new { message = message, metadata = message.ProcessingAttempts != null ? (DynamicEnumerable.LastOrDefault(message.ProcessingAttempts)).MessageMetadata : message.MessageMetadata } into this0 select new { MessageId = this0.metadata["MessageId"], Body = this0.metadata["Body"], BodySize = ((int)this0.metadata["ContentLength"]), ContentType = this0.metadata["ContentType"], BodyNotStored = ((bool)this0.metadata["BodyNotStored"]) }; }
public Index_FailedMessageViewIndex() { this.ViewText = @"from message in docs.FailedMessages select new { message = message, processingAttemptsLast = DynamicEnumerable.LastOrDefault(message.ProcessingAttempts) } into this0 select new { MessageId = this0.processingAttemptsLast.MessageMetadata[""MessageId""], MessageType = this0.processingAttemptsLast.MessageMetadata[""MessageType""], Status = this0.message.Status, TimeSent = ((DateTime)this0.processingAttemptsLast.MessageMetadata[""TimeSent""]), ReceivingEndpointName = ((this0.processingAttemptsLast.MessageMetadata[""ReceivingEndpoint""])).Name, QueueAddress = this0.processingAttemptsLast.FailureDetails.AddressOfFailingEndpoint, TimeOfFailure = this0.processingAttemptsLast.FailureDetails.TimeOfFailure, LastModified = (this0.message[""@metadata""].Value<DateTime>(""Last-Modified"")).Ticks }"; this.ForEntityNames.Add("FailedMessages"); this.AddMapDefinition(docs => from message in ((IEnumerable <dynamic>)docs) where string.Equals(message["@metadata"]["Raven-Entity-Name"], "FailedMessages", System.StringComparison.InvariantCultureIgnoreCase) select new { message = message, processingAttemptsLast = DynamicEnumerable.LastOrDefault(message.ProcessingAttempts), __document_id = message.__document_id } into this0 select new { MessageId = this0.processingAttemptsLast.MessageMetadata["MessageId"], MessageType = this0.processingAttemptsLast.MessageMetadata["MessageType"], Status = this0.message.Status, TimeSent = ((DateTime)this0.processingAttemptsLast.MessageMetadata["TimeSent"]), ReceivingEndpointName = ((this0.processingAttemptsLast.MessageMetadata["ReceivingEndpoint"])).Name, QueueAddress = this0.processingAttemptsLast.FailureDetails.AddressOfFailingEndpoint, TimeOfFailure = this0.processingAttemptsLast.FailureDetails.TimeOfFailure, LastModified = (this0.message["@metadata"].Value <DateTime>("Last-Modified")).Ticks, __document_id = this0.__document_id }); this.AddField("MessageId"); this.AddField("MessageType"); this.AddField("Status"); this.AddField("TimeSent"); this.AddField("ReceivingEndpointName"); this.AddField("QueueAddress"); this.AddField("TimeOfFailure"); this.AddField("LastModified"); this.AddField("__document_id"); this.AddQueryParameterForMap("__document_id"); this.AddQueryParameterForMap("message.Status"); this.AddQueryParameterForMap("Name"); this.AddQueryParameterForMap("processingAttemptsLast.FailureDetails.AddressOfFailingEndpoint"); this.AddQueryParameterForMap("processingAttemptsLast.FailureDetails.TimeOfFailure"); this.AddQueryParameterForMap("Ticks"); this.AddQueryParameterForReduce("__document_id"); this.AddQueryParameterForReduce("message.Status"); this.AddQueryParameterForReduce("Name"); this.AddQueryParameterForReduce("processingAttemptsLast.FailureDetails.AddressOfFailingEndpoint"); this.AddQueryParameterForReduce("processingAttemptsLast.FailureDetails.TimeOfFailure"); this.AddQueryParameterForReduce("Ticks"); }
public Transformer_FailedMessageViewTransformer() { this.ViewText = @"from failure in results select new { failure = failure, rec = DynamicEnumerable.LastOrDefault(failure.ProcessingAttempts) } into this0 select new { this0 = this0, edited = this0.rec.Headers[""ServiceControl.EditOf""] != null } into this1 select new { Id = this1.this0.failure.UniqueMessageId, MessageType = this1.this0.rec.MessageMetadata[""MessageType""], IsSystemMessage = ((bool)this1.this0.rec.MessageMetadata[""IsSystemMessage""]), SendingEndpoint = this1.this0.rec.MessageMetadata[""SendingEndpoint""], ReceivingEndpoint = this1.this0.rec.MessageMetadata[""ReceivingEndpoint""], TimeSent = ((DateTime?)this1.this0.rec.MessageMetadata[""TimeSent""]), MessageId = this1.this0.rec.MessageMetadata[""MessageId""], Exception = this1.this0.rec.FailureDetails.Exception, QueueAddress = this1.this0.rec.FailureDetails.AddressOfFailingEndpoint, NumberOfProcessingAttempts = this1.this0.failure.ProcessingAttempts.Count, Status = this1.this0.failure.Status, TimeOfFailure = this1.this0.rec.FailureDetails.TimeOfFailure, LastModified = this1.this0.failure[""@metadata""][""Last-Modified""].Value<DateTime>(), Edited = this1.edited, EditOf = this1.edited ? this1.this0.rec.Headers[""ServiceControl.EditOf""] : """" } "; this.TransformResultsDefinition = results => from failure in ((IEnumerable <dynamic>)results) select new { failure = failure, rec = DynamicEnumerable.LastOrDefault(failure.ProcessingAttempts) } into this0 select new { this0 = this0, edited = this0.rec.Headers["ServiceControl.EditOf"] != null } into this1 select new { Id = this1.this0.failure.UniqueMessageId, MessageType = this1.this0.rec.MessageMetadata["MessageType"], IsSystemMessage = ((bool)this1.this0.rec.MessageMetadata["IsSystemMessage"]), SendingEndpoint = this1.this0.rec.MessageMetadata["SendingEndpoint"], ReceivingEndpoint = this1.this0.rec.MessageMetadata["ReceivingEndpoint"], TimeSent = ((DateTime?)this1.this0.rec.MessageMetadata["TimeSent"]), MessageId = this1.this0.rec.MessageMetadata["MessageId"], Exception = this1.this0.rec.FailureDetails.Exception, QueueAddress = this1.this0.rec.FailureDetails.AddressOfFailingEndpoint, NumberOfProcessingAttempts = this1.this0.failure.ProcessingAttempts.Count, Status = this1.this0.failure.Status, TimeOfFailure = this1.this0.rec.FailureDetails.TimeOfFailure, LastModified = this1.this0.failure["@metadata"]["Last-Modified"].Value <DateTime>(), Edited = this1.edited, EditOf = this1.edited ? this1.this0.rec.Headers["ServiceControl.EditOf"] : "" }; }
public Index_QueueAddressIndex() { this.ViewText = @"from message in docs.FailedMessages select new { message = message, processingAttemptsLast = DynamicEnumerable.LastOrDefault(message.ProcessingAttempts) } into this0 select new { PhysicalAddress = this0.processingAttemptsLast.FailureDetails.AddressOfFailingEndpoint, FailedMessageCount = 1 } from result in results group result by result.PhysicalAddress into g select new { PhysicalAddress = g.Key, FailedMessageCount = Enumerable.Sum(g, m => ((int)m.FailedMessageCount)) }"; this.ForEntityNames.Add("FailedMessages"); this.AddMapDefinition(docs => from message in ((IEnumerable <dynamic>)docs) where string.Equals(message["@metadata"]["Raven-Entity-Name"], "FailedMessages", System.StringComparison.InvariantCultureIgnoreCase) select new { message = message, processingAttemptsLast = DynamicEnumerable.LastOrDefault(message.ProcessingAttempts), __document_id = message.__document_id } into this0 select new { PhysicalAddress = this0.processingAttemptsLast.FailureDetails.AddressOfFailingEndpoint, FailedMessageCount = 1, __document_id = this0.__document_id }); this.ReduceDefinition = results => from result in results group result by result.PhysicalAddress into g select new { PhysicalAddress = g.Key, FailedMessageCount = Enumerable.Sum(g, (Func <dynamic, int>)(m => ((int)m.FailedMessageCount))) }; this.GroupByExtraction = result => result.PhysicalAddress; this.AddField("PhysicalAddress"); this.AddField("FailedMessageCount"); this.AddQueryParameterForMap("__document_id"); this.AddQueryParameterForMap("processingAttemptsLast.FailureDetails.AddressOfFailingEndpoint"); this.AddQueryParameterForReduce("__document_id"); this.AddQueryParameterForReduce("processingAttemptsLast.FailureDetails.AddressOfFailingEndpoint"); }
public Index_FailedMessageFacetsIndex() { this.ViewText = @"from failure in docs.FailedMessages where failure.Status == 1 select new { failure = failure, t = ((DynamicEnumerable.LastOrDefault(failure.ProcessingAttempts)).MessageMetadata[""ReceivingEndpoint""]) } into this0 select new { Name = this0.t.Name, Host = this0.t.Host, MessageType = (DynamicEnumerable.LastOrDefault(this0.failure.ProcessingAttempts)).MessageMetadata[""MessageType""] }"; this.ForEntityNames.Add("FailedMessages"); this.AddMapDefinition(docs => from failure in ((IEnumerable <dynamic>)docs) where string.Equals(failure["@metadata"]["Raven-Entity-Name"], "FailedMessages", System.StringComparison.InvariantCultureIgnoreCase) where failure.Status == 1 select new { failure = failure, t = ((DynamicEnumerable.LastOrDefault(failure.ProcessingAttempts)).MessageMetadata["ReceivingEndpoint"]), __document_id = failure.__document_id } into this0 select new { Name = this0.t.Name, Host = this0.t.Host, MessageType = (DynamicEnumerable.LastOrDefault(this0.failure.ProcessingAttempts)).MessageMetadata["MessageType"], __document_id = this0.__document_id }); this.AddField("Name"); this.AddField("Host"); this.AddField("MessageType"); this.AddField("__document_id"); this.AddQueryParameterForMap("__document_id"); this.AddQueryParameterForMap("t.Name"); this.AddQueryParameterForMap("t.Host"); this.AddQueryParameterForReduce("__document_id"); this.AddQueryParameterForReduce("t.Name"); this.AddQueryParameterForReduce("t.Host"); }
public Index_MessagesViewIndex() { this.ViewText = @"from message in docs.ProcessedMessages select new { MessageId = ((string)message.MessageMetadata[""MessageId""]), MessageType = ((string)message.MessageMetadata[""MessageType""]), IsSystemMessage = ((bool)message.MessageMetadata[""IsSystemMessage""]), Status = ((bool)message.MessageMetadata[""IsRetried""]) ? 4 : 3, TimeSent = ((DateTime)message.MessageMetadata[""TimeSent""]), ProcessedAt = message.ProcessedAt, ReceivingEndpointName = ((message.MessageMetadata[""ReceivingEndpoint""])).Name, CriticalTime = ((TimeSpan?)message.MessageMetadata[""CriticalTime""]), ProcessingTime = ((TimeSpan?)message.MessageMetadata[""ProcessingTime""]), DeliveryTime = ((TimeSpan?)message.MessageMetadata[""DeliveryTime""]), Query = Enumerable.ToArray(DynamicEnumerable.Union(message.MessageMetadata.Select(_ => _.Value.ToString()), new string[] { String.Join("" "", message.Headers.Select(x => x.Value)) })), ConversationId = ((string)message.MessageMetadata[""ConversationId""]) } from message in docs.FailedMessages where message.Status != 2 select new { message = message, last = DynamicEnumerable.LastOrDefault(message.ProcessingAttempts) } into this0 select new { MessageId = this0.last.MessageId, MessageType = ((string)this0.last.MessageMetadata[""MessageType""]), IsSystemMessage = ((bool)this0.last.MessageMetadata[""IsSystemMessage""]), Status = this0.message.Status == 4 ? 5 : (this0.message.ProcessingAttempts.Count == 1 ? 1 : 2), TimeSent = ((DateTime)this0.last.MessageMetadata[""TimeSent""]), ProcessedAt = this0.last.AttemptedAt, ReceivingEndpointName = ((this0.last.MessageMetadata[""ReceivingEndpoint""])).Name, CriticalTime = ((TimeSpan?)null), ProcessingTime = ((TimeSpan?)null), DeliveryTime = ((TimeSpan?)null), Query = Enumerable.ToArray(DynamicEnumerable.Union(this0.last.MessageMetadata.Select(_ => _.Value.ToString()), new string[] { String.Join("" "", this0.last.Headers.Select(x => x.Value)) })), ConversationId = ((string)this0.last.MessageMetadata[""ConversationId""]) }"; this.ForEntityNames.Add("ProcessedMessages"); this.AddMapDefinition(docs => from message in ((IEnumerable <dynamic>)docs) where string.Equals(message["@metadata"]["Raven-Entity-Name"], "ProcessedMessages", System.StringComparison.InvariantCultureIgnoreCase) select new { MessageId = ((string)message.MessageMetadata["MessageId"]), MessageType = ((string)message.MessageMetadata["MessageType"]), IsSystemMessage = ((bool)message.MessageMetadata["IsSystemMessage"]), Status = ((bool)message.MessageMetadata["IsRetried"]) ? 4 : 3, TimeSent = ((DateTime)message.MessageMetadata["TimeSent"]), ProcessedAt = message.ProcessedAt, ReceivingEndpointName = ((message.MessageMetadata["ReceivingEndpoint"])).Name, CriticalTime = ((TimeSpan?)message.MessageMetadata["CriticalTime"]), ProcessingTime = ((TimeSpan?)message.MessageMetadata["ProcessingTime"]), DeliveryTime = ((TimeSpan?)message.MessageMetadata["DeliveryTime"]), Query = Enumerable.ToArray(DynamicEnumerable.Union(message.MessageMetadata.Select((Func <dynamic, dynamic>)(_ => _.Value.ToString())), new string[] { String.Join(" ", message.Headers.Select((Func <dynamic, dynamic>)(x => x.Value))) })), ConversationId = ((string)message.MessageMetadata["ConversationId"]), __document_id = message.__document_id }); this.ForEntityNames.Add("FailedMessages"); this.AddMapDefinition(docs => from message in ((IEnumerable <dynamic>)docs) where string.Equals(message["@metadata"]["Raven-Entity-Name"], "FailedMessages", System.StringComparison.InvariantCultureIgnoreCase) where message.Status != 2 select new { message = message, last = DynamicEnumerable.LastOrDefault(message.ProcessingAttempts), __document_id = message.__document_id } into this0 select new { MessageId = this0.last.MessageId, MessageType = ((string)this0.last.MessageMetadata["MessageType"]), IsSystemMessage = ((bool)this0.last.MessageMetadata["IsSystemMessage"]), Status = this0.message.Status == 4 ? 5 : (this0.message.ProcessingAttempts.Count == 1 ? 1 : 2), TimeSent = ((DateTime)this0.last.MessageMetadata["TimeSent"]), ProcessedAt = this0.last.AttemptedAt, ReceivingEndpointName = ((this0.last.MessageMetadata["ReceivingEndpoint"])).Name, CriticalTime = ((TimeSpan?)null), ProcessingTime = ((TimeSpan?)null), DeliveryTime = ((TimeSpan?)null), Query = Enumerable.ToArray(DynamicEnumerable.Union(this0.last.MessageMetadata.Select((Func <dynamic, dynamic>)(_ => _.Value.ToString())), new string[] { String.Join(" ", this0.last.Headers.Select((Func <dynamic, dynamic>)(x => x.Value))) })), ConversationId = ((string)this0.last.MessageMetadata["ConversationId"]), __document_id = this0.__document_id }); this.AddField("MessageId"); this.AddField("MessageType"); this.AddField("IsSystemMessage"); this.AddField("Status"); this.AddField("TimeSent"); this.AddField("ProcessedAt"); this.AddField("ReceivingEndpointName"); this.AddField("CriticalTime"); this.AddField("ProcessingTime"); this.AddField("DeliveryTime"); this.AddField("Query"); this.AddField("ConversationId"); this.AddField("__document_id"); this.AddQueryParameterForMap("ProcessedAt"); this.AddQueryParameterForMap("Name"); this.AddQueryParameterForMap("__document_id"); this.AddQueryParameterForMap("last.MessageId"); this.AddQueryParameterForMap("last.AttemptedAt"); this.AddQueryParameterForReduce("ProcessedAt"); this.AddQueryParameterForReduce("Name"); this.AddQueryParameterForReduce("__document_id"); this.AddQueryParameterForReduce("last.MessageId"); this.AddQueryParameterForReduce("last.AttemptedAt"); }
public Index_FailedMessages_ByGroup() { this.ViewText = @"from doc in docs.FailedMessages select new { doc = doc, processingAttemptsLast = DynamicEnumerable.LastOrDefault(doc.ProcessingAttempts) } into this0 from failureGroup in this0.doc.FailureGroups select new { Id = this0.doc.__document_id, MessageId = this0.doc.UniqueMessageId, FailureGroupId = failureGroup.Id, FailureGroupName = failureGroup.Title, Status = this0.doc.Status, MessageType = ((string)this0.processingAttemptsLast.MessageMetadata[""MessageType""]), TimeSent = ((DateTime)this0.processingAttemptsLast.MessageMetadata[""TimeSent""]), TimeOfFailure = this0.processingAttemptsLast.FailureDetails.TimeOfFailure, LastModified = (this0.doc[""@metadata""].Value<DateTime>(""Last-Modified"")).Ticks }"; this.ForEntityNames.Add("FailedMessages"); this.AddMapDefinition(docs => from doc in ((IEnumerable <dynamic>)docs) where string.Equals(doc["@metadata"]["Raven-Entity-Name"], "FailedMessages", System.StringComparison.InvariantCultureIgnoreCase) select new { doc = doc, processingAttemptsLast = DynamicEnumerable.LastOrDefault(doc.ProcessingAttempts), __document_id = doc.__document_id } into this0 from failureGroup in ((IEnumerable <dynamic>)this0.doc.FailureGroups) select new { Id = this0.doc.__document_id, MessageId = this0.doc.UniqueMessageId, FailureGroupId = failureGroup.Id, FailureGroupName = failureGroup.Title, Status = this0.doc.Status, MessageType = ((string)this0.processingAttemptsLast.MessageMetadata["MessageType"]), TimeSent = ((DateTime)this0.processingAttemptsLast.MessageMetadata["TimeSent"]), TimeOfFailure = this0.processingAttemptsLast.FailureDetails.TimeOfFailure, LastModified = (this0.doc["@metadata"].Value <DateTime>("Last-Modified")).Ticks, __document_id = this0.__document_id }); this.AddField("Id"); this.AddField("MessageId"); this.AddField("FailureGroupId"); this.AddField("FailureGroupName"); this.AddField("Status"); this.AddField("MessageType"); this.AddField("TimeSent"); this.AddField("TimeOfFailure"); this.AddField("LastModified"); this.AddField("__document_id"); this.AddQueryParameterForMap("__document_id"); this.AddQueryParameterForMap("doc.__document_id"); this.AddQueryParameterForMap("doc.UniqueMessageId"); this.AddQueryParameterForMap("Id"); this.AddQueryParameterForMap("Title"); this.AddQueryParameterForMap("doc.Status"); this.AddQueryParameterForMap("processingAttemptsLast.FailureDetails.TimeOfFailure"); this.AddQueryParameterForMap("Ticks"); this.AddQueryParameterForReduce("__document_id"); this.AddQueryParameterForReduce("doc.__document_id"); this.AddQueryParameterForReduce("doc.UniqueMessageId"); this.AddQueryParameterForReduce("Id"); this.AddQueryParameterForReduce("Title"); this.AddQueryParameterForReduce("doc.Status"); this.AddQueryParameterForReduce("processingAttemptsLast.FailureDetails.TimeOfFailure"); this.AddQueryParameterForReduce("Ticks"); }
public Transformer_MessagesViewTransformer() { this.ViewText = @"from message in results select new { message = message, metadata = message.ProcessingAttempts != null ? (DynamicEnumerable.LastOrDefault(message.ProcessingAttempts)).MessageMetadata : message.MessageMetadata } into this0 select new { this0 = this0, headers = this0.message.ProcessingAttempts != null ? (DynamicEnumerable.LastOrDefault(this0.message.ProcessingAttempts)).Headers : this0.message.Headers } into this1 select new { this1 = this1, processedAt = this1.this0.message.ProcessingAttempts != null ? (DynamicEnumerable.LastOrDefault(this1.this0.message.ProcessingAttempts)).AttemptedAt : this1.this0.message.ProcessedAt } into this2 select new { this2 = this2, status = this2.this1.this0.message.ProcessingAttempts == null ? (!((bool)(this2.this1.this0.message.MessageMetadata[""IsRetried""])) ? 3 : 4) : (this2.this1.this0.message.Status == 3 ? 6 : (this2.this1.this0.message.Status == 4 ? 5 : (this2.this1.this0.message.ProcessingAttempts.Count == 1 ? 1 : 2))) } into this3 select new { Id = this3.this2.this1.this0.message.UniqueMessageId, MessageId = this3.this2.this1.this0.metadata[""MessageId""], MessageType = this3.this2.this1.this0.metadata[""MessageType""], SendingEndpoint = this3.this2.this1.this0.metadata[""SendingEndpoint""], ReceivingEndpoint = this3.this2.this1.this0.metadata[""ReceivingEndpoint""], TimeSent = ((DateTime?)this3.this2.this1.this0.metadata[""TimeSent""]), ProcessedAt = this3.this2.processedAt, CriticalTime = ((TimeSpan)this3.this2.this1.this0.metadata[""CriticalTime""]), ProcessingTime = ((TimeSpan)this3.this2.this1.this0.metadata[""ProcessingTime""]), DeliveryTime = ((TimeSpan)this3.this2.this1.this0.metadata[""DeliveryTime""]), IsSystemMessage = ((bool)this3.this2.this1.this0.metadata[""IsSystemMessage""]), ConversationId = this3.this2.this1.this0.metadata[""ConversationId""], Headers = this3.this2.this1.headers.Select(header => new System.Collections.Generic.KeyValuePair<string, object>(header.Key, header.Value)), Status = this3.status, MessageIntent = this3.this2.this1.this0.metadata[""MessageIntent""], BodyUrl = this3.this2.this1.this0.metadata[""BodyUrl""], BodySize = ((int)this3.this2.this1.this0.metadata[""ContentLength""]), InvokedSagas = this3.this2.this1.this0.metadata[""InvokedSagas""], OriginatesFromSaga = this3.this2.this1.this0.metadata[""OriginatesFromSaga""] } "; this.TransformResultsDefinition = results => from message in ((IEnumerable <dynamic>)results) select new { message = message, metadata = message.ProcessingAttempts != null ? (DynamicEnumerable.LastOrDefault(message.ProcessingAttempts)).MessageMetadata : message.MessageMetadata } into this0 select new { this0 = this0, headers = this0.message.ProcessingAttempts != null ? (DynamicEnumerable.LastOrDefault(this0.message.ProcessingAttempts)).Headers : this0.message.Headers } into this1 select new { this1 = this1, processedAt = this1.this0.message.ProcessingAttempts != null ? (DynamicEnumerable.LastOrDefault(this1.this0.message.ProcessingAttempts)).AttemptedAt : this1.this0.message.ProcessedAt } into this2 select new { this2 = this2, status = this2.this1.this0.message.ProcessingAttempts == null ? (!((bool)(this2.this1.this0.message.MessageMetadata["IsRetried"])) ? 3 : 4) : (this2.this1.this0.message.Status == 3 ? 6 : (this2.this1.this0.message.Status == 4 ? 5 : (this2.this1.this0.message.ProcessingAttempts.Count == 1 ? 1 : 2))) } into this3 select new { Id = this3.this2.this1.this0.message.UniqueMessageId, MessageId = this3.this2.this1.this0.metadata["MessageId"], MessageType = this3.this2.this1.this0.metadata["MessageType"], SendingEndpoint = this3.this2.this1.this0.metadata["SendingEndpoint"], ReceivingEndpoint = this3.this2.this1.this0.metadata["ReceivingEndpoint"], TimeSent = ((DateTime?)this3.this2.this1.this0.metadata["TimeSent"]), ProcessedAt = this3.this2.processedAt, CriticalTime = ((TimeSpan)this3.this2.this1.this0.metadata["CriticalTime"]), ProcessingTime = ((TimeSpan)this3.this2.this1.this0.metadata["ProcessingTime"]), DeliveryTime = ((TimeSpan)this3.this2.this1.this0.metadata["DeliveryTime"]), IsSystemMessage = ((bool)this3.this2.this1.this0.metadata["IsSystemMessage"]), ConversationId = this3.this2.this1.this0.metadata["ConversationId"], Headers = this3.this2.this1.headers.Select((Func <dynamic, dynamic>)(header => new System.Collections.Generic.KeyValuePair <string, object>(header.Key, header.Value))), Status = this3.status, MessageIntent = this3.this2.this1.this0.metadata["MessageIntent"], BodyUrl = this3.this2.this1.this0.metadata["BodyUrl"], BodySize = ((int)this3.this2.this1.this0.metadata["ContentLength"]), InvokedSagas = this3.this2.this1.this0.metadata["InvokedSagas"], OriginatesFromSaga = this3.this2.this1.this0.metadata["OriginatesFromSaga"] }; }
public static dynamic LastOrDefault(this IGrouping <dynamic, dynamic> self, Func <dynamic, bool> predicate) { return(DynamicEnumerable.LastOrDefault(self, predicate)); }
public static dynamic LastOrDefault(this IGrouping <dynamic, dynamic> self) { return(DynamicEnumerable.LastOrDefault(self)); }