* Output Protocol Factory
*/
protected TProtocolFactory outputProtocolFactory;
- public delegate void LogDelegate(string str);
- protected LogDelegate logDelegate;
+
+ public delegate void LogDelegate(string str);\r
+ private LogDelegate _logDelegate;\r
+ protected LogDelegate logDelegate\r
+ {\r
+ get { return _logDelegate; }\r
+ set { _logDelegate = (value != null) ? value : DefaultLogDelegate; }
+ }
/**
* Default constructors.
this.outputTransportFactory = outputTransportFactory;
this.inputProtocolFactory = inputProtocolFactory;
this.outputProtocolFactory = outputProtocolFactory;
- this.logDelegate = logDelegate;
+ this.logDelegate = (logDelegate != null) ? logDelegate : DefaultLogDelegate;
}
/**