示例#1
0
        /// <exception cref="InvalidImplementationException">The local host type has no constructor compatible with specified args.</exception>
        private LocalScriptHost CreateLocalHost(RemoteScriptHost remoteHost)
        {
            LocalScriptHost result = ReflectionUtils.CreateInstance <LocalScriptHost>(_localHostType);

            result.SetRemoteHost(remoteHost);
            return(result);
        }
        /// <exception cref="InvalidImplementationException">The local host type has no constructor compatible with specified args.</exception>
        private LocalScriptHost CreateLocalHost(RemoteScriptHost remoteHost) {
            LocalScriptHost result = ReflectionUtils.CreateInstance<LocalScriptHost>(_localHostType);
            result.SetRemoteHost(remoteHost);
            return result;

        }
 // the host is not set in ctor in order to prevent manipulation with it while constructing the base class:
 internal void SetRemoteHost(RemoteScriptHost remoteHost) {
     Debug.Assert(remoteHost != null);
     _remoteHost = remoteHost;
 }
示例#4
0
 // the host is not set in ctor in order to prevent manipulation with it while constructing the base class:
 internal void SetRemoteHost(RemoteScriptHost remoteHost)
 {
     Debug.Assert(remoteHost != null);
     _remoteHost = remoteHost;
 }