public void Dispose() { if (service != null) { try { service.Exit(); } catch (RemotingException) { // Couldn't connect } catch (SerializationException) { // For this: "End of Stream encountered before parsing was completed." } service = null; } if (loader != null) { loader.Dispose(); loader = null; } }
public AssemblyClient(IAssemblyServerLoader loader) { this.loader = loader; }