public static void Start(MySecureString streamlootsId)
        {
            Task.Run(async() =>
            {
                IStreamlootsService service = new StreamlootsService(streamlootsId);
                await service.Connect();

                while (true)
                {
                    await Task.Delay(60000);
                }
            });
        }
Пример #2
0
 public CloudinaryClient(string imagePath, MySecureString cloudinaryUrl)
 {
     this.imagePath = imagePath;
     cloudinary     = new Cloudinary(cloudinaryUrl.GetStr());
 }
Пример #3
0
 public void InitializeClient(MySecureString bearerToken)
 {
     client.DefaultRequestHeaders.Add("authorization", $"Bearer {bearerToken.GetStr()}");
 }
Пример #4
0
 public LifxService(MySecureString bearerToken)
 {
     InitializeClient(bearerToken);
 }
Пример #5
0
 public StreamlootsClient(MySecureString bearerToken)
 {
     client.DefaultRequestHeaders.Add("authorization", $"Bearer {bearerToken.GetStr()}");
     //TestApi();
 }
Пример #6
0
 public StreamlootsService(MySecureString streamlootsID)
 {
     this.streamlootsID = streamlootsID;
 }