Skip to content

Instantly share code, notes, and snippets.

@andreasohlund
Created January 18, 2011 14:25
Show Gist options
  • Save andreasohlund/784488 to your computer and use it in GitHub Desktop.
Save andreasohlund/784488 to your computer and use it in GitHub Desktop.
/// <summary>
/// The main interface for interactions with the databus
/// </summary>
public interface IDataBus
{
/// <summary>
/// Gets a data item from the bus
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
Stream Get(string key);
/// <summary>
/// Adds a data item to the bus and returns the assigned key
/// </summary>
/// <param name="stream"></param>
string Put(Stream stream);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment