public void CreateSnapIn(string assemblyName, string typeName) { SynchronizationContextCache.RestoreOriginalContext(); this._snapInInstance = (SnapInBase) AppDomain.CurrentDomain.CreateInstanceAndUnwrap(assemblyName, typeName); this._snapInInstance.SnapInClient = this; }