Skip to content

Commit

Permalink
Updated APIClient SDK to disable logging
Browse files Browse the repository at this point in the history
  • Loading branch information
acenolaza committed May 20, 2015
1 parent 8a3ca4a commit 2c8970e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 22 deletions.
4 changes: 1 addition & 3 deletions VersionOne.ServerConnector/VersionOne.ServerConnector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="VersionOne.SDK.APIClient, Version=15.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="VersionOne.SDK.APIClient">
<HintPath>..\packages\VersionOne.SDK.APIClient.15.0.0.0\lib\net451\VersionOne.SDK.APIClient.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,8 @@
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="VersionOne.SDK.APIClient, Version=15.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="VersionOne.SDK.APIClient">
<HintPath>..\packages\VersionOne.SDK.APIClient.15.0.0.0\lib\net451\VersionOne.SDK.APIClient.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net">
<Reference Include="log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\log4net.2.0.3\lib\net40-full\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
Expand All @@ -90,10 +91,8 @@
<Reference Include="System.Data" />
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Xml" />
<Reference Include="VersionOne.SDK.APIClient, Version=15.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="VersionOne.SDK.APIClient">
<HintPath>..\packages\VersionOne.SDK.APIClient.15.0.0.0\lib\net451\VersionOne.SDK.APIClient.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
42 changes: 30 additions & 12 deletions VersionOne.ServiceHost/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<section name="Services" type="VersionOne.ServiceHost.ServicesConfigurationHandler,VersionOne.ServiceHost.Core"/>
</configSections>

<appSettings>
<add key="Debug" value="false"/>
<add key="DebugFileName" value="C:\temp\VersionOneAPIClientDebug.txt"/>
</appSettings>

<Installer>
<ShortName>V1JIRA</ShortName>
<LongName>VersionOne Integration for JIRA</LongName>
Expand Down Expand Up @@ -40,24 +45,33 @@

<!-- Configuration for JIRA Service -->
<JiraService disabled="0" class="VersionOne.ServiceHost.JiraServices.JiraHostedService, VersionOne.ServiceHost.JiraServices">

<!-- JIRA Connectivity -->
<JIRAUrl>http://jira-64.cloudapp.net:8080/rest/api/latest</JIRAUrl>
<JIRAUserName>admin</JIRAUserName>
<JIRAPassword>admin</JIRAPassword>

<CreateDefectFilter disabled="0" id="10300"/> <!--Id of the filter used to find issues to be created as V1 defects -->
<CreateStoryFilter disabled="0" id="10200"/> <!--Id of the filter used to find issues to be created as V1 stories -->
<CreateDefectFilter disabled="0" id="10300"/>
<!--Id of the filter used to find issues to be created as V1 defects -->
<CreateStoryFilter disabled="0" id="10200"/>
<!--Id of the filter used to find issues to be created as V1 stories -->

<!-- Fields to update to prevent creating multiple workitems in V1 -->
<!-- Not all of these fields are required, consult the documentation on how to set them -->
<CreateFieldId>customfield_10000</CreateFieldId> <!-- ID of JIRA field to update when a V1 workitem is created -->
<CreateFieldValue>Open</CreateFieldValue> <!-- Value to set in CreateFieldId -->
<CloseFieldId>customfield_10000</CloseFieldId> <!-- ID of JIRA field to update when a V1 workitem is closed -->
<CloseFieldValue>Closed</CloseFieldValue> <!-- Value to set in CloseFieldId -->
<ProgressWorkflow>11</ProgressWorkflow> <!-- ID of JIRA status to set after a V1 workitem is created -->
<ProgressWorkflowClosed>151</ProgressWorkflowClosed><!-- ID of JIRA status to set after a V1 workitem is closed -->
<AssigneeStateChanged>-1</AssigneeStateChanged> <!-- Name to set the assignee to field to when a V1 workitem is closed (optional) Note: In JIRA 3.10.2 a value of -1 caused 'Automatic' assignment -->
<CreateFieldId>customfield_10000</CreateFieldId>
<!-- ID of JIRA field to update when a V1 workitem is created -->
<CreateFieldValue>Open</CreateFieldValue>
<!-- Value to set in CreateFieldId -->
<CloseFieldId>customfield_10000</CloseFieldId>
<!-- ID of JIRA field to update when a V1 workitem is closed -->
<CloseFieldValue>Closed</CloseFieldValue>
<!-- Value to set in CloseFieldId -->
<ProgressWorkflow>11</ProgressWorkflow>
<!-- ID of JIRA status to set after a V1 workitem is created -->
<ProgressWorkflowClosed>151</ProgressWorkflowClosed>
<!-- ID of JIRA status to set after a V1 workitem is closed -->
<AssigneeStateChanged>-1</AssigneeStateChanged>
<!-- Name to set the assignee to field to when a V1 workitem is closed (optional) Note: In JIRA 3.10.2 a value of -1 caused 'Automatic' assignment -->

<!-- These elements are used to create a link in VersionOne to JIRA issue (we replace #key# with JIRA Issue id) -->
<JIRAIssueUrlTemplate>http://jira-64.cloudapp.net:8080/browse/#key#</JIRAIssueUrlTemplate>
Expand Down Expand Up @@ -108,7 +122,8 @@
<!-- VersionOne field used to hold the Jira Issue identifier. This can be any text field, including custom fields. -->
<ExternalIdFieldName>Reference</ExternalIdFieldName>
<Settings>
<AuthenticationType>0</AuthenticationType> <!--0 = AccessToken, 1 = Basic, 2 = Integrated, 3 = Integrated with username and password-->
<AuthenticationType>0</AuthenticationType>
<!--0 = AccessToken, 1 = Basic, 2 = Integrated, 3 = Integrated with username and password-->
<ApplicationUrl>https://www11.v1host.com/V1Integrations</ApplicationUrl>
<AccessToken>1.DxVCpH5EiM1MszZq255gBrj15R0=</AccessToken>
<Username>admin</Username>
Expand All @@ -125,4 +140,7 @@

</Services>

<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/></startup></configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
</startup>
</configuration>

0 comments on commit 2c8970e

Please sign in to comment.