public CprBroker.Schemas.Part.Events.CommonEventStructureType ToOioNotification() { //TODO: Fill urls var ret = new Schemas.Part.Events.CommonEventStructureType() { EventDetailStructure = null, EventInfoStructure = new EventInfoStructureType() { EventIdentifier = Strings.GuidToUri(this.EventNotificationId).ToString(), EventObjectStructure = new EventObjectStructureType() { actionSchemeReference = null,//new Uri(""), EventObjectActionCode = "", EventObjectReference = Strings.GuidToUri(this.PersonUuid).ToString(), ObjectTypeReference = null, //new Uri(""), }, EventProducerReference = null, //new Uri(""), EventRegistrationDateTime = this.CreatedDate, IsLastNotification = this.IsLastNotification.HasValue && this.IsLastNotification.Value, IsLastNotificationSpecified = this.IsLastNotification.HasValue }, EventSubscriptionReference = Strings.GuidToUri(this.SubscriptionId).ToString(), EventTopic = null,//new Uri(""), ExtensionStructure = null, //Signature = null }; return(ret); }
public void Notify(Schemas.Part.Events.CommonEventStructureType notification) { Engine.Manager.Admin.Log("", Constants.EventBrokerApplicationToken.ToString(), Strings.SerializeObject(notification)); }