private static object ReadPropertyVersion(PropertyInfo prop, string hash, DirectoryInfo propRoot, int version) { string readFromRootDir = Path.Combine(propRoot.FullName, hash); IpcMessage msg = IpcMessage.Get(version.ToString(), prop.PropertyType, readFromRootDir); return(msg.Read <object>()); }
protected virtual object ReadSerializableTypeByHash(Type type, string hash) { IpcMessage msg = IpcMessage.Get(hash, type, RootDirectory); SubscribeToIpcMessageEvents(msg); return(msg.Read <object>()); }
public void ReadMessages() { IpcMessage msg = IpcMessage.Get <TestMessage>(messageName); Timer timer = new Timer((o) => { OutLineFormat("Reading:\r\n {0}", ConsoleColor.Blue, msg.Read <TestMessage>().PropertiesToString()); }, null, 0, 900); Pause(); }
public static Job ReinstantiateSuspendedJob(IIpcMessageStore messageStore, string instanceId) { IpcMessage message = messageStore.GetMessage <Job>(instanceId); return(message.Read <Job>()); }