public static bool Exists(string name, Type messageType, out IpcMessage result) { result = new IpcMessage(name, messageType); return(File.Exists(result.MessageFile)); }
public bool SetMessage(string name, object data) { IpcMessage msg = GetMessage(data.GetType(), name); return(msg.Write(data)); }
public static bool Exists <T>(string name, out IpcMessage result) { result = new IpcMessage(name, typeof(T)); return(File.Exists(result.MessageFile)); }
/// <summary> /// Gets a message with the specified name /// of the specified type creating it if necessary /// </summary> /// <param name="type"></param> /// <param name="name"></param> /// <returns></returns> public IpcMessage GetMessage(Type type, string name) { IpcMessage result = IpcMessage.Get(name, type, RootDirectory); return(result); }