Exemple #1
0
 public TraceSubscriber(Generic.ICell <T> source, FSharpFunc <T, string> formater, string prefix = "")
 {
     listener  = source.Subscribe(this);
     printline = "Observed " + prefix + source.Mnemonic + " : {0}";
     _formater = formater;
     var v = source.Value;
 }
Exemple #2
0
 public ConsoleSessionSubscriber(Generic.ICell <T> source, string prefix = "")
 {
     if (typeof(T) != typeof(string) && typeof(T).IsSubclassOf(typeof(IEnumerable)))
     {
         collection = true;
     }
     listener  = source.Subscribe(this);
     printline = "{0} Observed {1}" + prefix + source.Mnemonic + " : {2}";
     var v = source.Value;
 }
Exemple #3
0
 public ConsoleSubscriber(Generic.ICell <T> source, string prefix = "")
 {
     listener  = source.Subscribe(this);
     printline = "Observed " + prefix + " : {0}";
     var v = source.Value;
 }