public static void Write(Log log) { //if (client == null || client.Cluster.Description.State == ClusterState.Disconnected) // throw new TraceStateException("No connection to local db."); LogBuffer freeBuffer = Arbiter.Wait(); freeBuffer.Add(log); Arbiter.Release(freeBuffer); }
public static void Write(Log log) { if (client == null) { throw new TraceStateException("No connection to local db."); } LogBuffer freeBuffer = Arbiter.Wait(); freeBuffer.Add(log); Arbiter.Release(freeBuffer); }