Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
SignalR MT Integration Post
public class Location :
Hub
{
public Task GetLocation(string truckId)
{
Task task = null;
Bus.Instance.PublishRequestAsync(new GetLocation { TruckId = truckId }, x =>
{
task = x.Handle(message => {});
x.SetTimeout(30.Seconds());
});
return task;
}
}
public class Location :
Hub
{
public Task GetLocation(string truckId)
{
Task task = null;
Bus.Instance.PublishRequestAsync(new GetLocation { TruckId = truckId }, x =>
{
task = x.Handle(message => {});
x.SetTimeout(30.Seconds());
});
return task.ContinueWith(t => new LocationView(...));
}
public class LocationView
{
public string TruckId { get; set; }
public string Location { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.