예제 #1
0
        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);
        }
예제 #2
0
 private void SetConverter(ResponseConverter converter)
 {
     this._converter = converter;
 }