make channel access opt-in rather than opt out

This commit is contained in:
Luke Pulverenti
2015-01-12 22:46:44 -05:00
parent f552174069
commit d8d5dd4873
72 changed files with 399 additions and 241 deletions

View File

@@ -393,7 +393,7 @@ namespace MediaBrowser.Dlna
throw new ArgumentException("System profiles cannot be deleted.");
}
File.Delete(info.Path);
_fileSystem.DeleteFile(info.Path);
}
public void CreateProfile(DeviceProfile profile)
@@ -432,9 +432,9 @@ namespace MediaBrowser.Dlna
if (!string.Equals(path, current.Path, StringComparison.Ordinal) &&
current.Info.Type != DeviceProfileType.System)
{
File.Delete(current.Path);
_fileSystem.DeleteFile(current.Path);
}
_xmlSerializer.SerializeToFile(profile, path);
}

View File

@@ -899,5 +899,11 @@ namespace MediaBrowser.Dlna.PlayTo
return request;
}
}
public Task SendMessage<T>(string name, T data, CancellationToken cancellationToken)
{
// Not supported or needed right now
return Task.FromResult(true);
}
}
}