Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Services EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToServices(Service service)
 {
     base.AddObject("Services", service);
 }
Example #2
0
 /// <summary>
 /// Create a new Service object.
 /// </summary>
 /// <param name="serviceId">Initial value of the ServiceId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="clientUrl">Initial value of the ClientUrl property.</param>
 /// <param name="managementUrl">Initial value of the ManagementUrl property.</param>
 /// <param name="token">Initial value of the Token property.</param>
 /// <param name="inboundPublicKey">Initial value of the InboundPublicKey property.</param>
 /// <param name="inboundPrivateKey">Initial value of the InboundPrivateKey property.</param>
 /// <param name="outboundPublicKey">Initial value of the OutboundPublicKey property.</param>
 /// <param name="outboundPrivateKey">Initial value of the OutboundPrivateKey property.</param>
 /// <param name="managementInboundPublicKey">Initial value of the ManagementInboundPublicKey property.</param>
 /// <param name="managementInboundPrivateKey">Initial value of the ManagementInboundPrivateKey property.</param>
 /// <param name="managementOutboundPublicKey">Initial value of the ManagementOutboundPublicKey property.</param>
 /// <param name="managementOutboundPrivateKey">Initial value of the ManagementOutboundPrivateKey property.</param>
 /// <param name="uniquePad">Initial value of the UniquePad property.</param>
 /// <param name="initialized">Initial value of the Initialized property.</param>
 /// <param name="tested">Initial value of the Tested property.</param>
 /// <param name="lockToIp">Initial value of the LockToIp property.</param>
 /// <param name="clientRequestToken">Initial value of the ClientRequestToken property.</param>
 /// <param name="managementRequestToken">Initial value of the ManagementRequestToken property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 public static Service CreateService(global::System.Int32 serviceId, global::System.String name, global::System.String clientUrl, global::System.String managementUrl, global::System.String token, global::System.String inboundPublicKey, global::System.String inboundPrivateKey, global::System.String outboundPublicKey, global::System.String outboundPrivateKey, global::System.String managementInboundPublicKey, global::System.String managementInboundPrivateKey, global::System.String managementOutboundPublicKey, global::System.String managementOutboundPrivateKey, global::System.Guid uniquePad, global::System.Boolean initialized, global::System.Boolean tested, global::System.Boolean lockToIp, global::System.String clientRequestToken, global::System.String managementRequestToken, global::System.DateTime createdDate)
 {
     Service service = new Service();
     service.ServiceId = serviceId;
     service.Name = name;
     service.ClientUrl = clientUrl;
     service.ManagementUrl = managementUrl;
     service.Token = token;
     service.InboundPublicKey = inboundPublicKey;
     service.InboundPrivateKey = inboundPrivateKey;
     service.OutboundPublicKey = outboundPublicKey;
     service.OutboundPrivateKey = outboundPrivateKey;
     service.ManagementInboundPublicKey = managementInboundPublicKey;
     service.ManagementInboundPrivateKey = managementInboundPrivateKey;
     service.ManagementOutboundPublicKey = managementOutboundPublicKey;
     service.ManagementOutboundPrivateKey = managementOutboundPrivateKey;
     service.UniquePad = uniquePad;
     service.Initialized = initialized;
     service.Tested = tested;
     service.LockToIp = lockToIp;
     service.ClientRequestToken = clientRequestToken;
     service.ManagementRequestToken = managementRequestToken;
     service.CreatedDate = createdDate;
     return service;
 }