Exemple #1
0
 /// <summary>
 /// Upload archive with bot content.
 /// </summary>
 /// <param name="repository">SSCAIT repository on which perform operation.</param>
 /// <param name="botName">Name of the bot on the SSCAIT server.</param>
 /// <param name="botStream">Stream with bot archive.</param>
 /// <returns>Information about operation status.</returns>
 public static StatusResponse Upload(this SSCAITRepository repository, string botName, Stream botStream)
 {
     return(Task.Run(() => repository.UploadAsync(botName, botStream)).Result);
 }
Exemple #2
0
 /// <summary>
 /// Performs login to the bot repository server.
 /// </summary>
 /// <param name="repository">SSCAIT repository on which perform operation.</param>
 /// <param name="login">Login of the user. Use your email for SSCAIT server.</param>
 /// <param name="unsecurePassword">Password of the user.</param>
 /// <returns>Information about operation status.</returns>
 public static StatusResponse Login(this SSCAITRepository repository, string login, string unsecurePassword)
 {
     return(Task.Run(() => repository.LoginAsync(login, unsecurePassword)).Result);
 }