Skip to content

Commit

Permalink
remove commented code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjuarezgx committed Jul 25, 2023
1 parent 556506d commit 93cc788
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ private void Initialize(GXService providerService)
_endpoint = serviceSettings.GetEncryptedPropertyValue(PropertyConstants.URI_ENDPOINT);
_accessKey = serviceSettings.GetEncryptedPropertyValue(PropertyConstants.ACCESS_KEY);

//Package Azure.Identity cannot be referenced because it conflicts with Microsoft.Identity.Client pack version
//used transitively by gxmail and dynamoDB projects.

/*if (string.IsNullOrEmpty(_accessKey))
//Try using Active Directory authentication
_client = new EventGridPublisherClient(
new Uri(_endpoint),
new DefaultAzureCredential());*/


if (!string.IsNullOrEmpty(_endpoint)) {

_client = new EventGridPublisherClient(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,5 @@ public EventRouterProviderBase Connect(string endpoint, string accesskey, out GX
success = successConnect;
return evtRouterProvider;
}
/*public EventRouterProviderBase Connect(string endpoint, out GXBaseCollection<SdtMessages_Message> errorMessages, out bool success)
{
EventRouterProvider eventRouterProvider = new EventRouterProvider();
GXProperties properties = new GXProperties
{
{ PropertyConstants.EVENTROUTER_AZUREEG_ENDPOINT, endpoint },
};
EventRouterProviderBase evtRouterProvider = eventRouterProvider.Connect(PropertyConstants.AZUREEVENTGRID, properties, out GXBaseCollection<SdtMessages_Message> errorMessagesConnect, out bool successConnect);
errorMessages = errorMessagesConnect;
success = successConnect;
return evtRouterProvider;
}*/
}
}

0 comments on commit 93cc788

Please sign in to comment.