internal static TInterface Create(RemoteProcedureExecutor <TInterface> executor, ResponseConverter converter) { object proxy = Create <TInterface, ServiceProxy <TInterface> >(); ((ServiceProxy <TInterface>)proxy).SetExecutor(executor); ((ServiceProxy <TInterface>)proxy).SetConverter(converter); return((TInterface)proxy); }
private void SetConverter(ResponseConverter converter) { _converter = converter; }