Exemplo n.º 1
0
        public static ICrateStorage GetDirectMessageEventPayload()
        {
            var payload = new CrateStorage();

            payload.Add(Crate.FromContent(string.Empty, new OperationalStateCM()));
            var eventReport = new EventReportCM();

            eventReport.EventPayload.Add(Crate.FromContent(string.Empty, new StandardPayloadDataCM(new KeyValueDTO("channel_id", "D001"), new KeyValueDTO("user_name", "notuser"))));
            payload.Add(Crate.FromContent(string.Empty, eventReport));
            return(payload);
        }
Exemplo n.º 2
0
        private ICrateStorage CreateConfiguredStorage()
        {
            var storage = new CrateStorage();

            storage.Add(Fr8.Infrastructure.Data.Crates.Crate.FromContent("Config", new Query_DocuSign_v1.ActivityUi()));

            return(storage);
        }
Exemplo n.º 3
0
        public static ICrateStorage CrateStorageDTO()
        {
            var fieldDTO = new TextBox();

            fieldDTO.Name     = "connection_string";
            fieldDTO.Required = true;
            fieldDTO.Label    = "SQL Connection String";

            ICrateStorage curCrateStorage = new CrateStorage();

            curCrateStorage.Add("Configuration Data for WriteToAzureSqlServer", new StandardConfigurationControlsCM(fieldDTO));

            return(curCrateStorage);
        }
Exemplo n.º 4
0
        private ICrateStorage ExtractEventPayload(Envelope curEventEnvelope)
        {
            var stroage = new CrateStorage();

            var payloadDataCM = new StandardPayloadDataCM();

            foreach (var curNotification in curEventEnvelope.Body.Notifications.NotificationList)
            {
                payloadDataCM.PayloadObjects.Add(new PayloadObjectDTO(CreateKeyValuePairList(curNotification)));
            }

            var payloadCrate = Crate.FromContent("Salesforce Event Notification Payload", payloadDataCM);

            stroage.Add(payloadCrate);

            return(stroage);
        }