public UpdateRoutesContainerOperation( string traceType, string containerId, string containerName, string applicationId, string applicationName, string cgroupName, List <string> gatewayIpAddresses, bool autoRemove, bool isContainerRoot, ContainerNetworkType networkType, ContainerActivatorService activator, TimeoutHelper timeoutHelper) { this.traceType = traceType; this.containerId = containerId; this.containerName = containerName; this.applicationId = applicationId; this.applicationName = applicationName; this.cgroupName = cgroupName; this.gatewayIpAddresses = gatewayIpAddresses; this.autoRemove = autoRemove; this.isContainerRoot = isContainerRoot; this.networkType = networkType; this.activator = activator; this.timeoutHelper = timeoutHelper; }
internal static ContainerNetworkType FromNativeContainerNetworkType( NativeTypes.FABRIC_CONTAINER_NETWORK_TYPE nativeContainerNetworkType) { ContainerNetworkType networkType = ContainerNetworkType.Other; if ((nativeContainerNetworkType & NativeTypes.FABRIC_CONTAINER_NETWORK_TYPE.FABRIC_CONTAINER_NETWORK_TYPE_OPEN) == NativeTypes.FABRIC_CONTAINER_NETWORK_TYPE.FABRIC_CONTAINER_NETWORK_TYPE_OPEN) { networkType = networkType | ContainerNetworkType.Open; } if ((nativeContainerNetworkType & NativeTypes.FABRIC_CONTAINER_NETWORK_TYPE.FABRIC_CONTAINER_NETWORK_TYPE_ISOLATED) == NativeTypes.FABRIC_CONTAINER_NETWORK_TYPE.FABRIC_CONTAINER_NETWORK_TYPE_ISOLATED) { networkType = networkType | ContainerNetworkType.Isolated; } return(networkType); }