コード例 #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 SetExecutor(RemoteProcedureExecutor <TInterface> executor)
 {
     _executor = executor;
 }