public static StreamInstance GetInstance() { lock (InstanceLock) { return instance ?? (instance = new StreamInstance(new StreamHelper())); } }
public StreamInstance(IStreamHelper streamHelper) { StreamHelper = streamHelper; instance = this; }