Exemple #1
0
 /// <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));
     });
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 private bool ModalityIsNotified(Conversation conversation, ModalityTypes modalityType)
 {
     return(conversation.Modalities.ContainsKey(modalityType) &&
            conversation.Modalities[modalityType].State == ModalityState.Notified);
 }
Exemple #4
0
 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;
 }
Exemple #8
0
 public Problematique()
 {
     _innerType = ModalityTypes.Problematique;
 }
 public Appodictique()
 {
     _innerType = ModalityTypes.Appodictique;
 }
 public Assertotique()
 {
     _innerType = ModalityTypes.Assertotique;
 }