Example #1
0
 public static ActionResult ActivateNetTcpPortSharing(Session session)
 {
     sessionObj = session;
     try {
         System.ServiceModel.Activation.Configuration.NetTcpSection ntSection = new System.ServiceModel.Activation.Configuration.NetTcpSection();
         ntSection.TeredoEnabled = true;
         CustomActions.LogToSession("ActivateNetTcpPortSharing: Success");
         return(ActionResult.Success);
     } catch (Exception e) {
         CustomActions.LogToSession(string.Format("Failed to activate NetTcpPortSharing: {0}", e.Message));
         return(ActionResult.Failure);
     }
 }
 public static ActionResult ActivateNetTcpPortSharing(Session session)
 {
     sessionObj = session;
     try {
         System.ServiceModel.Activation.Configuration.NetTcpSection ntSection = new System.ServiceModel.Activation.Configuration.NetTcpSection();
         ntSection.TeredoEnabled = true;
         CustomActions.LogToSession("ActivateNetTcpPortSharing: Success");
         return ActionResult.Success;
     } catch (Exception e) {
         CustomActions.LogToSession(string.Format("Failed to activate NetTcpPortSharing: {0}", e.Message));
         return ActionResult.Failure;
     }
 }