public ZammadService()
        {
            string zammadUrl = System.Environment.GetEnvironmentVariable(ZammadUrlSetting);

            var account = ZammadAccount.CreateBasicAccount(zammadUrl, KeyVault.Login, KeyVault.Password);

            TicketClient = account.CreateTicketClient();
        }
Пример #2
0
 private static ZammadAccount CreateZammadAccount(IServiceProvider serviceProvider)
 {
     return(ZammadAccount.CreateBasicAccount(
                Configuration["Zammad:Endpoint"],
                Configuration["Zammad:User"],
                Configuration["Zammad:Password"]
                ));
 }
Пример #3
0
 public static ZammadAccount CreateTestAccount()
 {
     return(ZammadAccount.CreateBasicAccount(TestConstants.AccountEndpoint, TestConstants.AccountUser, TestConstants.AccountPassword));
 }