Skip to content

Commit

Permalink
chore: Removed compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marklechtermann committed Nov 20, 2023
1 parent 23e2008 commit c6361a2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/outproc/server/dotnet6/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using dSPACE.Runtime.InteropServices;
using dSPACE.Runtime.InteropServices.ComTypes;
internal class Program
internal sealed class Program
{
[DllImport("ole32.dll")]
public static extern int CoResumeClassObjects();
Expand Down Expand Up @@ -33,10 +33,10 @@ private static void Main(string[] args)

var registration = new RegistrationServices();
var cookie = registration.RegisterTypeForComClients(typeof(Server.Common.Greeter), RegistrationClassContext.LocalServer, RegistrationConnectionType.MultipleUse | RegistrationConnectionType.Suspended);

System.Console.WriteLine($"OutProc COM server running. PID:{Environment.ProcessId}");
System.Console.WriteLine($"RegisterTypeForComClients return cookie {cookie}");

var hr = CoResumeClassObjects();
if (hr < 0)
{
Expand Down
1 change: 1 addition & 0 deletions src/dscom.demo/assembly4/assembly4.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<Platforms>AnyCPU;x86</Platforms>
<EnableComHosting>true</EnableComHosting>
<NoWarn>NU5104,CS1591</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/dscom.demo/assembly5/assembly5.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<Platforms>AnyCPU;x86</Platforms>
<EnableComHosting>true</EnableComHosting>
<NoWarn>NU5104,CS1591</NoWarn>
</PropertyGroup>
<PropertyGroup>
<UseWPF>true</UseWPF>
Expand Down
2 changes: 2 additions & 0 deletions src/dscom/RegistrationServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma warning disable IL3000

using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
Expand Down

0 comments on commit c6361a2

Please sign in to comment.