internal static ILogEventArgs ViewToContractAdapter(LogEventArgs view)
 {
     if (view.GetType().Equals(typeof(LogEventArgsContractToViewAddInAdapter)))
         return ((LogEventArgsContractToViewAddInAdapter)(view)).GetSourceContract();
     else
         return new LogEventArgsViewToContractAddInAdapter(view);
 }
 public LogEventArgsViewToContractAddInAdapter(LogEventArgs view)
 {
     _view = view;
 }
 public void Handler(object sender, LogEventArgs args)
 {
     _contract.Handler(LogEventArgsHostAdapter.ViewToContractAdapter(args));
 }
Beispiel #4
0
 static void addin_Log(object sender, LogEventArgs e)
 {
     Console.WriteLine(e.Message);
 }