/// <summary> /// Initializes a new instance of <see cref="WampHost"/> given the /// <see cref="IWampRealmContainer"/> associated with this host. /// </summary> /// <param name="realmContainer"></param> /// <param name="uriValidator"></param> public WampHost(IWampRealmContainer realmContainer = null, IWampUriValidator uriValidator = null) { realmContainer = realmContainer ?? new WampRealmContainer(); mUriValidator = uriValidator ?? new LooseUriValidator(); mInternalHost = new InMemoryWampHost(realmContainer, UriValidator); mInternalHost.Open(); mExternalHost = new WampHostBase(realmContainer, UriValidator); mRealmContainer = new ServiceHostedRealmContainer(mExternalHost.RealmContainer, mInternalHost); }
public ServiceHostedRealmContainer(IWampHostedRealmContainer realmContainer, InMemoryWampHost internalHost) { mRealmContainer = realmContainer; mInternalHost = internalHost; }