Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
Exposed ExtractDeviceIdFromConnectionString
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Bloch committed Dec 17, 2016
1 parent aba78ca commit cbec4e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public async void sendDeviceTelemetryData(D2CMessage[] data)
/// </summary>
/// <param name="connectionString"></param>
/// <returns></returns>
private string ExtractDeviceIdFromConnectionString(string connectionString)
public string ExtractDeviceIdFromConnectionString(string connectionString)
{
Regex pattern = new Regex(@"HostName=(?<hostName>[^\s/]*);DeviceId=(?<deviceId>[^\s/]*);SharedAccessKey=(?<shareAccessKey>[^\s/]*)");
Match match = pattern.Match(connectionString);
Expand Down

0 comments on commit cbec4e8

Please sign in to comment.