コード例 #1
0
        internal static void RegisterNewFlowInformation(FlowToken flowToken, EntityToken entityToken, ActionToken actionToken, string consoleId)
        {
            IFlowInformation flowInformation = DataFacade.BuildNew <IFlowInformation>();

            flowInformation.Id                    = Guid.NewGuid();
            flowInformation.Username              = UserSettings.Username;
            flowInformation.ConsoleId             = consoleId;
            flowInformation.SerializedFlowToken   = FlowTokenSerializer.Serialize(flowToken);
            flowInformation.SerializedEntityToken = EntityTokenSerializer.Serialize(entityToken);
            flowInformation.SerializedActionToken = ActionTokenSerializer.Serialize(actionToken);
            flowInformation.TimeStamp             = DateTime.Now;

            DataFacade.AddNew <IFlowInformation>(flowInformation);
        }
コード例 #2
0
        internal static void UnregisterFlowInformation(FlowToken flowToken)
        {
            string serializedFlowToken = FlowTokenSerializer.Serialize(flowToken);

            DataFacade.Delete <IFlowInformation>(f => f.SerializedFlowToken == serializedFlowToken);
        }