This file contains 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
system = ActorSystem.Create("myAkkaSystem"); | |
var coordinator = system.ActorOf<WorkCoordinatorActor>("workcoordinator"); | |
bus = RabbitHutch.CreateBus("host=localhost"); | |
bus.Subscribe<CdrRecieved>("<mysubId>", message => { | |
var result = coordinator.Ask<WorkCompleted>(new StartWorkFor() {Details = message}).Result; | |
//do something with it | |
}); |
This file contains 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 LogAttribute : ActionFilterAttribute { | |
private IDictionary<string, object> parameters; | |
private string description; | |
public LogAttribute(string description) { | |
this.description = description; | |
} | |
public override void OnActionExecuting(ActionExecutingContext filterContext) { | |
parameters = filterContext.ActionParameters; |
This file contains 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
var dataArguments = ['args1','arg2','arg3','arg4']; | |
var bucket =[]; | |
$.when.apply($,$.map(dataArguments, function(arg){ | |
//here you setup and return an ajax request | |
//for example | |
var ajaxData = {term:arg, somethingelse:0}; | |
return $.ajax({ |
This file contains 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
$(function () { | |
$('span.field-validation-valid, span.field-validation-error').each(function () { | |
$(this).addClass('help-block col-xs-12 col-sm-reset inline'); | |
}); | |
$('.validation-summary-errors').each(function () { | |
$(this).addClass('alert'); | |
$(this).addClass('alert-error'); | |
$(this).addClass('alert-block'); |
NewerOlder