This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Nack_And_Send_To_DLX : IConsumerErrorStrategy | |
{ | |
public void Dispose() | |
{ | |
} | |
public AckStrategy HandleConsumerError(ConsumerExecutionContext context, Exception exception) | |
{ | |
return AckStrategies.NackWithoutRequeue; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Route("kenny")] | |
public class Kenny | |
{ | |
public string Name { get; set; } | |
public int Id { get; set; } | |
public List<string> Data { get; set; } | |
public CustomClass Custom { get; set; } | |
} | |
public class CustomClass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('form').parsley({ | |
listeners: { | |
onFieldError: function (elem, constraints, ParsleyField) { | |
$(elem).closest('.control-group').removeClass('success').addClass('error'); | |
}, | |
onFieldSuccess: function (elem, constraints, ParsleyField) { | |
$(elem).closest('.control-group').removeClass('error').addClass('success'); | |
} | |
}, | |
errors: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[XmlInclude(typeof(UpdateIdentityPermissionCommand))] | |
[XmlInclude(typeof(RemoveIdentityAccessCommand))] | |
[XmlInclude(typeof(UpdateProfileImageCommand))] | |
//Måste inkludera alla subklasser, suger men så är livet :) | |
public class Command : MessageBase //Om ni nu har en MessageBase | |
{ } | |
//Exempel command | |
public class UpdateProfileImageCommand : Command | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NaturalSortComparer : IComparer<string>, IDisposable | |
{ | |
private bool isAscending; | |
public NaturalSortComparer(bool inAscendingOrder = true) | |
{ | |
this.isAscending = inAscendingOrder; | |
} | |
public int Compare(string x, string y) |