private static async Task CreateIncidentResponse()
        {
            var incidentResponseServiceConnectionInfo = new IncidentResponseServiceConnectionInfo("skumar", "youtube", "https://localhost:44373/api/incidentresponse/");
            var incidentForCreate = new IncidentForCreate(
                "This is the subject of the Email",
                "This is the description of the emails that will be sent",
                "https://matlus.webex.com/meet/test",
                "800-888-0000",
                "808 123 456",
                "Internal Ticket#: 123456789",
                "TechSupportGroup");

            using var incidentResponseGateway = new IncidentResponseGateway(incidentResponseServiceConnectionInfo);
            var incidentNumber = await incidentResponseGateway.IntiateIncidentNotifications(incidentForCreate);

            Console.WriteLine("Incident Response Created");
            Console.WriteLine($"Incident #: {incidentNumber}");
        }
Esempio n. 2
0
 public IncidentResponseGateway(IncidentResponseServiceConnectionInfo incidentResponseServiceConnectionInfo)
 {
     _incidentResponseServiceConnectionInfo = incidentResponseServiceConnectionInfo;
     _serviceAgentHttp = new ServiceAgentHttp(incidentResponseServiceConnectionInfo.BaseUrl);
 }