public async Task <Exception> Disconnect(ICloudDatabaseReference reference) { if (reference.IsNull()) { return(new ArgumentNullException(nameof(reference))); } await new WaitForEndOfFrame(); reference.Dispose(); return(null); }
public static bool IsNullOrEmpty(this ICloudDatabaseReference obj) { if (obj.IsNull()) { return(true); } if (obj.data.IsNullOrEmpty()) { return(true); } return(false); }