/// <summary> /// Execute an action on a modality state within all current and future conversations. /// </summary> public static void InState <T>(LyncClient client, ModalityTypes modalityType, ModalityState state, Action <Conversation, T> action) where T : Modality { OnAllConversations(client, conversation => { var modality = (T)conversation.Modalities[modalityType]; InState(modality, state, (T m) => action(conversation, m)); }); }
public SqlDependencyEx( string connectionString, string databaseName, string tableName, string schemaName = "dbo", NotificationTypes listenerType = NotificationTypes.Insert | NotificationTypes.Update | NotificationTypes.Delete, bool receiveDetails = true, int identity = 1, string identityName = "", ModalityTypes modality = ModalityTypes.Full) { ConnectionString = connectionString; DatabaseName = databaseName; TableName = tableName; SchemaName = schemaName; NotificaionTypes = listenerType; DetailsIncluded = receiveDetails; Identity = identity; IdentityName = identityName; ModalityType = modality; }
private bool ModalityIsNotified(Conversation conversation, ModalityTypes modalityType) { return(conversation.Modalities.ContainsKey(modalityType) && conversation.Modalities[modalityType].State == ModalityState.Notified); }
private bool ModalityIsNotified(Conversation conversation, ModalityTypes modalityType) { return conversation.Modalities.ContainsKey(modalityType) && conversation.Modalities[modalityType].State == ModalityState.Notified; }
public Problematique() { _innerType = ModalityTypes.Problematique; }
public Appodictique() { _innerType = ModalityTypes.Appodictique; }
public Assertotique() { _innerType = ModalityTypes.Assertotique; }