Exemplo n.º 1
0
 public WcfServiceHostSettings(WcfServiceBehavior objBehavior, WcfServiceThrottling objThrottling, Type objType, ListBase <string> objBaseAddresses, WcfServiceEndpointList objServiceEndpoints, WcfMetadataEndpoint objMetadataEndpoint)
     : base()
 {
     Behavior         = objBehavior;
     Throttling       = objThrottling;
     Type             = objType;
     BaseAddresses    = objBaseAddresses;
     ServiceEndpoints = objServiceEndpoints;
     MetadataEndpoint = objMetadataEndpoint;
 }
Exemplo n.º 2
0
        public override void ReadData(BinaryReaderExtension objBinaryReader)
        {
            base.ReadData(objBinaryReader);

            Behavior   = objBinaryReader.ReadTransportableObject <WcfServiceBehavior>();
            Throttling = objBinaryReader.ReadTransportableObject <WcfServiceThrottling>();

            string strType = objBinaryReader.ReadString();

            Type = System.Type.GetType(strType);

            BaseAddresses    = objBinaryReader.ReadTransportableObject <ListBase <string> >();
            ServiceEndpoints = objBinaryReader.ReadTransportableObject <WcfServiceEndpointList>();
            MetadataEndpoint = objBinaryReader.ReadTransportableObject <WcfMetadataEndpoint>();
        }
Exemplo n.º 3
0
        public override void ReadData(SerializedObject objSerializedObject)
        {
            base.ReadData(objSerializedObject);

            Behavior   = objSerializedObject.Objects.GetObject <WcfServiceBehavior>("Behavior", null);
            Throttling = objSerializedObject.Objects.GetObject <WcfServiceThrottling>("Throttling", null);

            string strType = objSerializedObject.Values.GetValue <string>("AssemblyQualifiedName", null);

            if (strType != null)
            {
                Type = System.Type.GetType(strType);
            }
            else
            {
                Type = null;
            }

            BaseAddresses    = objSerializedObject.Objects.GetObject <ListBase <string> >("BaseAddresses", null);
            ServiceEndpoints = objSerializedObject.Objects.GetObject <WcfServiceEndpointList>("ServiceEndpoints", null);
            MetadataEndpoint = objSerializedObject.Objects.GetObject <WcfMetadataEndpoint>("MetadataEndpoint", null);
        }