public virtual bool ProcessAtClient() { ByteArrayInputStream @is = new ByteArrayInputStream(_payLoad._buffer); int dispatcherID = PrimitiveCodec.ReadInt(@is); CallbackObjectInfoCollections callbackInfos = Decode(@is); Container().ThreadPool().Start(ReflectPlatform.SimpleName(GetType()) + ": calling commit callbacks thread" , new _IRunnable_111(this, callbackInfos, dispatcherID)); return(true); }
/// <exception cref="System.Exception"></exception> public virtual void TestFailureEvent() { var executed = ByRef.NewInstance(false); var exception = new Exception(); _subject.UncaughtException += new _IEventListener4_20(exception, executed).OnEvent; _subject.Start(ReflectPlatform.SimpleName(GetType()) + " throwing exception thread" , new _IRunnable_27(exception)); _subject.Join(1000); Assert.IsTrue((((bool)executed.value))); }
internal LoggingWrapper(Type clazz) { _logInterface = clazz; try { string loggingImplBaseName = LoggingSupportBaseName() + "_LoggingSupport" + ReflectPlatform .InnerClassSeparator + LoggingQualifiedBaseName(); string loggerClassName = ReflectPlatform.AdjustClassName(loggingImplBaseName + "Logger" , clazz); string nullImplClassName = ReflectPlatform.AdjustClassName(loggingImplBaseName + "Adapter", clazz); Type logerClass = ReflectPlatform.ForName(loggerClassName); if (logerClass == null) { throw new ArgumentException("Cannot find logging support for " + ReflectPlatform. SimpleName(_logInterface)); } _ctorLoggerClass = logerClass.GetConstructor(loggerConstructorParameterTypes); nullImpl = (object)ReflectPlatform.CreateInstance(nullImplClassName); } catch (SecurityException e) { throw new Exception("Error accessing logging support for class " + clazz.FullName , e); } catch (MissingMethodException e) { throw new Exception("Error accessing logging support for class " + clazz.FullName , e); } trace = CreateProxy(Logger.Trace); debug = CreateProxy(Logger.Debug); info = CreateProxy(Logger.Info); warn = CreateProxy(Logger.Warn); error = CreateProxy(Logger.Error); fatal = CreateProxy(Logger.Fatal); }
public override string ToString() { return(ReflectPlatform.SimpleName(GetType()) + "(" + _classMetadata.GetName() + ")"); }
public virtual void Test() { Container().ThreadPool().Start(ReflectPlatform.SimpleName(typeof (UnhandledExceptionInThreadTestCase )) + " Throwing Exception Thread", new _IRunnable_15()); }