You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
48
external/referencesource/System.ServiceModel/System/ServiceModel/Channels/NamedPipeSettings.cs
vendored
Normal file
48
external/referencesource/System.ServiceModel/System/ServiceModel/Channels/NamedPipeSettings.cs
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
// <copyright>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace System.ServiceModel.Channels
|
||||
{
|
||||
public sealed class NamedPipeSettings
|
||||
{
|
||||
internal NamedPipeSettings()
|
||||
{
|
||||
this.ApplicationContainerSettings = new ApplicationContainerSettings();
|
||||
}
|
||||
|
||||
NamedPipeSettings(NamedPipeSettings elementToBeCloned)
|
||||
{
|
||||
if (elementToBeCloned.ApplicationContainerSettings != null)
|
||||
{
|
||||
this.ApplicationContainerSettings = elementToBeCloned.ApplicationContainerSettings.Clone();
|
||||
}
|
||||
}
|
||||
|
||||
public ApplicationContainerSettings ApplicationContainerSettings
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
internal NamedPipeSettings Clone()
|
||||
{
|
||||
return new NamedPipeSettings(this);
|
||||
}
|
||||
|
||||
internal bool IsMatch(NamedPipeSettings pipeSettings)
|
||||
{
|
||||
if (pipeSettings == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this.ApplicationContainerSettings.IsMatch(pipeSettings.ApplicationContainerSettings))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user