public FakeSqlEventProvider() { events = new List <INotifiableEvent>(); //const int step = 5; //for (var i = 1; i < 100; i += step) //{ // var evnt = new NotifiableEvent // { // Created = DateTime.UtcNow, // Description = "just a fake event coming from WorkOrderNotifiableEventProvider", // Name = "Fake event " + i, // Id = i, // Message = "This is a fake event representing some event that XNotify will pull from an external data source", // Source = "FakeSqlEventProvider", // Subject = "Your Notification", // UtcDue = DateTime.UtcNow.AddMinutes(i) // }; // evnt.Targets = new List<INotificationTarget> // { // new NotificationTarget("Randall Sexton", "*****@*****.**", "8653865611", true, true) // }; // events.Add(evnt); //} var evnt = new NotifiableEvent { Created = DateTime.UtcNow, Description = "just a fake event coming from WorkOrderNotifiableEventProvider", Name = "Fake event ", Id = 0, Message = this.BuildMessageContent(), Source = "FakeSqlEventProvider", Subject = "Your Notification", UtcDue = DateTime.UtcNow.AddMinutes(1), Targets = new List <INotificationTarget> { new NotificationTarget("Randall Sexton", "*****@*****.**", "+18653865611", true, true), new NotificationTarget("Joe Blow", "*****@*****.**", "+15005550001", false, true) } }; events.Add(evnt); }
public IEnumerable <INotifiableEvent> GetAll() { var events = new List <INotifiableEvent>(); var evnt = new NotifiableEvent { Created = DateTime.UtcNow, Description = "just a fake event", Name = "Fake event", Id = 1, Message = "This is a fake event representing some event that XNotify will pull from an external data source", Source = "YourNamespace.XNotifyProivders.MyFakeProvider", Subject = "Your Notification", UtcDue = DateTime.UtcNow.AddMinutes(10) }; events.Add(evnt); return(events.AsEnumerable()); }
public IoSyncStatus(IoStatus status, NotifiableEvent<IoStatus> notifiableEvent) { this.status = status; this.notifiableEvent = notifiableEvent; }
public IoSyncStatus(IoStatus status, NotifiableEvent <IoStatus> notifiableEvent) { this.status = status; this.notifiableEvent = notifiableEvent; }