/// <summary> /// Initializes a new instance of the <see cref="UserAuditGridModel" /> class. /// </summary> /// <param name="_object">_object.</param> /// <param name="objectType">objectType.</param> /// <param name="instanceName">instanceName.</param> /// <param name="createdBy">createdBy.</param> /// <param name="created">created.</param> /// <param name="action">action.</param> public UserAuditGridModel(EventObject _object = default(EventObject), EventObjectType objectType = default(EventObjectType), string instanceName = default(string), string createdBy = default(string), DateTime created = default(DateTime), EventAction action = default(EventAction)) { this.Object = _object; this.ObjectType = objectType; this.InstanceName = instanceName; this.CreatedBy = createdBy; this.Created = created; this.Action = action; }
protected override void Invoke(object parameter) { if (EventObject != null) { if (!EventObjectType.GetTypeOrTypeInfo().IsAssignableFrom(EventObject.GetType())) { return; } } var targetEventRouter = EventRouter ?? EventRouter.Instance; targetEventRouter.RaiseEvent(this, EventObject, EventObjectType, EventRoutingName); }
public EventUser(EventOperationType typeOperation, EventObjectType typeObject, object objectModel) { this.typeOperation = typeOperation; this.typeObject = typeObject; this.objectModel = null; if (typeObject == EventObjectType.Award) { this.objectModel = objectModel as AwardViewModel; } if (typeObject == EventObjectType.People) { this.objectModel = objectModel as PeopleViewModel; } dateEvent = DateTime.Now; operationId = Guid.NewGuid().ToString(); }
/** <inheritdoc /> */ public override string ToString() { return(EventObjectType.ToString()); }
internal OwaFolderCountAdvisor(MailboxSession mailboxSession, OwaStoreObjectId folderId, EventObjectType objectType, EventType eventType) { this.folderId = folderId; this.mailboxOwner = mailboxSession.MailboxOwner; this.eventCondition = new EventCondition(); this.eventCondition.EventType = eventType; this.eventCondition.ObjectType = objectType; if (folderId != null) { this.eventCondition.ContainerFolderIds.Add(folderId.StoreObjectId); if (mailboxSession.LogonType == LogonType.Delegated) { this.eventCondition.ObjectIds.Add(folderId.StoreObjectId); } } this.countAdvisor = ItemCountAdvisor.Create(mailboxSession, this.eventCondition); }
public void CreateDelegateOwaFolderCountAdvisor(MailboxSession mailboxSession, OwaStoreObjectId folderId, EventObjectType objectType, EventType eventType) { if (mailboxSession == null) { throw new ArgumentNullException("mailboxSession"); } if (folderId == null) { throw new ArgumentNullException("folderId"); } if (this.delegateFolderCountAdvisorTable == null) { this.delegateFolderCountAdvisorTable = new Dictionary <OwaStoreObjectId, OwaFolderCountAdvisor>(); } OwaFolderCountAdvisor value; if (!this.delegateFolderCountAdvisorTable.TryGetValue(folderId, out value)) { value = new OwaFolderCountAdvisor(mailboxSession, folderId, objectType, eventType); this.delegateFolderCountAdvisorTable.Add(folderId, value); } }
public void CreateOwaLastEventAdvisor(UserContext userContext, StoreObjectId folderId, EventObjectType objectType, EventType eventType) { if (userContext == null) { throw new ArgumentNullException("userContext"); } if (folderId == null) { throw new ArgumentNullException("folderId"); } if (userContext.MailboxSession.LogonType != LogonType.Delegated) { this.lastEventAdvisor = new OwaLastEventAdvisor(userContext, folderId, objectType, eventType); } }
public void CreateOwaConditionAdvisor(UserContext userContext, MailboxSession mailboxSession, OwaStoreObjectId folderId, EventObjectType objectType, EventType eventType) { if (userContext == null) { throw new ArgumentNullException("userContext"); } if (folderId == null) { throw new ArgumentNullException("folderId"); } if (!userContext.IsWebPartRequest) { OwaConditionAdvisor value = new OwaConditionAdvisor(mailboxSession, folderId, objectType, eventType); if (this.conditionAdvisorTable == null) { this.conditionAdvisorTable = new Dictionary <OwaStoreObjectId, OwaConditionAdvisor>(); } this.conditionAdvisorTable.Add(folderId, value); } }
internal OwaLastEventAdvisor(UserContext userContext, StoreObjectId folderId, EventObjectType objectType, EventType eventType) { this.eventCondition = new EventCondition(); this.folderId = folderId; this.eventCondition.EventType = eventType; this.eventCondition.ObjectType = objectType; this.eventCondition.ContainerFolderIds.Add(folderId); this.lastEventAdvisor = LastEventAdvisor.Create(userContext.MailboxSession, this.eventCondition); }
internal OwaConditionAdvisor(MailboxSession mailboxSession, OwaStoreObjectId folderId, EventObjectType objectType, EventType eventType) { this.eventCondition = new EventCondition(); this.folderId = folderId; this.eventCondition.ObjectType = objectType; this.eventCondition.EventType = eventType; this.eventCondition.ContainerFolderIds.Add(folderId.StoreObjectId); this.conditionAdvisor = ConditionAdvisor.Create(mailboxSession, this.eventCondition); }