//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: //ORIGINAL LINE: @Override public <T> T execute(final Command<T> command) public override T execute <T>(Command <T> command) { ProcessApplicationIdentifier processApplicationIdentifier = ProcessApplicationContextImpl.get(); if (processApplicationIdentifier != null) { // clear the identifier so this interceptor does not apply to nested commands ProcessApplicationContextImpl.clear(); try { ProcessApplicationReference reference = getPaReference(processApplicationIdentifier); return(Context.executeWithinProcessApplication(new CallableAnonymousInnerClass(this, command) , reference)); } finally { // restore the identifier for subsequent commands ProcessApplicationContextImpl.set(processApplicationIdentifier); } } else { return(next.execute(command)); } }
/// <summary> /// Clears the currently declared context process application. /// </summary> public static void clear() { ProcessApplicationContextImpl.clear(); }