private static bool IsSupportedContextInput(MessageAssembler message) { for (var i = 0; i < message.ContextInput.Length; i++) { var input = message.ContextInput[i]; if (!ServerChannelAdapter.TryGetServiceContextOptionMethod(message.Parameters[input].ParameterType)) { return(false); } } return(true); }
private void PushContext(ILGenerator body, int serverContextParameterIndex, Type contextType) { // ServerChannelAdapter.GetContext(context) body.EmitLdarg(serverContextParameterIndex); body.Emit(OpCodes.Call, ServerChannelAdapter.GetServiceContextOptionMethod(contextType)); }