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 CC1 : IHandleMessages<MakeCustomerPreferred> | |
{ | |
public IBus Bus { get; set; } | |
public void Handle(MakeCustomerPreferred message) | |
{ | |
Bus.Publish<CustomerHasBeenMadePreferred>(m => m.CustomerId = message.CustomerId); | |
} | |
} |
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
namespace Billing | |
{ | |
public class RefundPolicyData : IContainSagaData | |
{ | |
public Guid Id { get; set; } | |
public string Originator { get; set; } | |
public string OriginalMessageId { get; set; } | |
public Guid OrderId { get; set; } |
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 RefundPolicy : Saga<RefundPolicy.State>, IAmStartedByMessages<OrderAccepted>, IHandleMessages<ProductsReturned>, | |
IHandleTimeouts<Percent>, | |
IHandleSagaNotFound | |
{ | |
public void Handle(OrderAccepted message) | |
{ | |
Data.OrderId = message.OrderId; | |
Data.Percent = 100; | |
RequestTimeout(TimeSpan.FromDays(30), 50.Percent()); |
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 () { | |
var now = new Date().toJSON().slice(0,10); | |
var events=[]; | |
$.ajax({ | |
type: 'POST', | |
url: "https://www.googleapis.com/calendar/v3/calendars/events@nservicebus.com/events?orderBy=startTime&singleEvents=true&timeMin=" + now + "T00%3A00%3A00Z&key=AIzaSyDJ29Ux6xcsL-y4aaAjGbKzCnj-skBUUBk", | |
dataType: 'jsonp', | |
success: function (jData) { | |
for(var i = 0; i < jData.items.length; i++) { |