aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.WebRTC/VideoFrameReceivedEventArgs.cs
blob: d147b89d4c42ce8d02faa7a5ed0e7a7114c46deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.WebRTC
{
    public class VideoFrameReceivedEventArgs : EventArgs
    {
        public Bitmap Bitmap { get; set; }
    }
}
span class="nc">SQLServerManager { private String _service_root = $"https://login.microsoftonline.com/{WebConfig.TENANT_ID}"; public AuthenticationResult GetAccessToken() { var authContext = new AuthenticationContext(_service_root); authContext.TokenCache.Clear(); ClientCredential clientCredentials = new ClientCredential(WebConfig.CLIENT_ID, WebConfig.APP_SECRET); AuthenticationResult authResult = authContext.AcquireTokenAsync("https://database.windows.net/", clientCredentials).Result; return authResult; } public SqlConnection CreateSqlConnection(String accessToken, String catalog) { SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(); builder.DataSource = "twine.database.windows.net"; builder.InitialCatalog = catalog; builder.MultipleActiveResultSets = true; builder.ApplicationName = "EntityFramework"; SqlConnection sqlConnection = new SqlConnection(builder.ConnectionString); sqlConnection.AccessToken = accessToken; return sqlConnection; } } }