//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4952
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
[assembly: global::System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: global::System.Reflection.AssemblyProductAttribute("MyLegoCarService")]
[assembly: global::System.Reflection.AssemblyTitleAttribute("MyLegoCarService")]
[assembly: global::Microsoft.Dss.Core.Attributes.ServiceDeclarationAttribute(global::Microsoft.Dss.Core.Attributes.DssServiceDeclaration.Proxy, SourceAssemblyKey="MyLegoCarService.Y2010.M09, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6111" +
"f4f52f855ee1")]
[assembly: global::System.Security.SecurityTransparentAttribute()]
[assembly: global::System.Security.AllowPartiallyTrustedCallersAttribute()]
namespace MyLegoCarService.Proxy {
[global::Microsoft.Dss.Core.Attributes.DataContractAttribute(Namespace="http://schemas.tempuri.org/2010/09/mylegocarservice.html")]
[global::System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.tempuri.org/2010/09/mylegocarservice.html", ElementName="MyLegoCarServiceState")]
public class MyLegoCarServiceState : global::Microsoft.Dss.Core.IDssSerializable, global::System.ICloneable {
public MyLegoCarServiceState() {
}
/// <summary>
///Copies the data member values of the current MyLegoCarServiceState to the specified target object
///</summary>
///<param name="target">target object (must be an instance of)</param>
public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target) {
global::MyLegoCarService.Proxy.MyLegoCarServiceState typedTarget = ((global::MyLegoCarService.Proxy.MyLegoCarServiceState)(target));
}
/// <summary>
///Clones MyLegoCarServiceState
///</summary>
///<returns>cloned value</returns>
public virtual object Clone() {
global::MyLegoCarService.Proxy.MyLegoCarServiceState target0 = new global::MyLegoCarService.Proxy.MyLegoCarServiceState();
this.CopyTo(target0);
return target0;
}
/// <summary>
///Serializes the data member values of the current MyLegoCarServiceState to the specified writer
///</summary>
///<param name="writer">the writer to which to serialize</param>
public virtual void Serialize(System.IO.BinaryWriter writer) {
}
/// <summary>
///Deserializes MyLegoCarServiceState
///</summary>
///<param name="reader">the reader from which to deserialize</param>
///<returns>deserialized MyLegoCarServiceState</returns>
public virtual object Deserialize(System.IO.BinaryReader reader) {
return this;
}
}
[global::Microsoft.Dss.Core.Attributes.DataContractAttribute(Namespace="http://schemas.tempuri.org/2010/09/mylegocarservice.html")]
[global::System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.tempuri.org/2010/09/mylegocarservice.html", ElementName="TimerTickRequest")]
public class TimerTickRequest : global::Microsoft.Dss.Core.IDssSerializable, global::System.ICloneable {
public TimerTickRequest() {
}
/// <summary>
///Copies the data member values of the current TimerTickRequest to the specified target object
///</summary>
///<param name="target">target object (must be an instance of)</param>
public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target) {
global::MyLegoCarService.Proxy.TimerTickRequest typedTarget = ((global::MyLegoCarService.Proxy.TimerTickRequest)(target));
}
/// <summary>
///Clones TimerTickRequest
///</summary>
///<returns>cloned value</returns>
public virtual object Clone() {
global::MyLegoCarService.Proxy.TimerTickRequest target0 = new global::MyLegoCarService.Proxy.TimerTickRequest();
this.CopyTo(target0);
return target0;
}
/// <summary>
///Serializes the data member values of the current TimerTickRequest to the specified writer
///</summary>
///<param name="writer">the writer to which to serialize</param>
public virtual void Serialize(System.IO.BinaryWriter writer) {
}
/// <summary>
///Deserializes TimerTickRequest
///</summary>
///<param name="reader">the reader from which to deserialize</param>
///<returns>deserialized TimerTickRequest</returns>
public virtual object Deserialize(System.IO.BinaryReader reader) {
return this;
}
}
[global::System.Xml.Serialization.XmlTypeAttribute(IncludeInSchema=false)]
public class Get : global::Microsoft.Dss.ServiceModel.Dssp.Get<global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType, global:: Microsoft.Ccr.Core.PortSet<global::MyLegoCarService.Proxy.MyLegoCarServiceState, global:: W3C.Soap.Fault>> {
public Get() {
}
public Get(global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType body) :
base(body) {
}
public Get(global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType body, global::Microsoft.Ccr.Core.PortSet<global::MyLegoCarService.Proxy.MyLegoCarServiceState, global:: W3C.Soap.Fault> responsePort) :
base(body, responsePort) {
}
}
[global::System.Xml.Serialization.XmlTypeAttribute(IncludeInSchema=false)]
public class Subscribe : global::Microsoft.Dss.ServiceModel.Dssp.Subscribe<global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType, global:: Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.SubscribeResponseType, global:: W3C.Soap.Fault>> {
public Subscribe() {
}
public Subscribe(global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType body) :
base(body) {
}
public Subscribe(global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType body, global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.SubscribeResponseType, global:: W3C.Soap.Fault> responsePort) :
base(body, responsePort) {
}
}
[global::System.Xml.Serialization.XmlTypeAttribute(IncludeInSchema=false)]
public class TimerTick : global::Microsoft.Dss.ServiceModel.Dssp.Update<global::MyLegoCarService.Proxy.TimerTickRequest, global:: Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.DefaultUpdateResponseType, global:: W3C.Soap.Fault>> {
public TimerTick() {
}
public TimerTick(global::MyLegoCarService.Proxy.TimerTickRequest body) :
base(body) {
}
public TimerTick(global::MyLegoCarService.Proxy.TimerTickRequest body, global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.DefaultUpdateResponseType, global:: W3C.Soap.Fault> responsePort) :
base(body, responsePort) {
}
}
[global::System.Xml.Serialization.XmlTypeAttribute(IncludeInSchema=false)]
public class MyLegoCarServiceOperations : global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultLookup, global:: Microsoft.Dss.ServiceModel.Dssp.DsspDefaultDrop, global:: MyLegoCarService.Proxy.Get, global:: MyLegoCarService.Proxy.Subscribe, global:: MyLegoCarService.Proxy.TimerTick> {
public MyLegoCarServiceOperations() {
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.LookupResponse, global::W3C.Soap.Fault> DsspDefaultLookup() {
global::Microsoft.Dss.ServiceModel.Dssp.LookupRequestType body = new global::Microsoft.Dss.ServiceModel.Dssp.LookupRequestType();
global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultLookup operation = new global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultLookup(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice DsspDefaultLookup(out global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultLookup operation) {
global::Microsoft.Dss.ServiceModel.Dssp.LookupRequestType body = new global::Microsoft.Dss.ServiceModel.Dssp.LookupRequestType();
operation = new global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultLookup(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.LookupResponse, global::W3C.Soap.Fault> DsspDefaultLookup(global::Microsoft.Dss.ServiceModel.Dssp.LookupRequestType body) {
if ((body == null)) {
body = new global::Microsoft.Dss.ServiceModel.Dssp.LookupRequestType();
}
global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultLookup operation = new global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultLookup(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice DsspDefaultLookup(global::Microsoft.Dss.ServiceModel.Dssp.LookupRequestType body, out global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultLookup operation) {
if ((body == null)) {
body = new global::Microsoft.Dss.ServiceModel.Dssp.LookupRequestType();
}
operation = new global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultLookup(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.DefaultDropResponseType, global::W3C.Soap.Fault> DsspDefaultDrop() {
global::Microsoft.Dss.ServiceModel.Dssp.DropRequestType body = new global::Microsoft.Dss.ServiceModel.Dssp.DropRequestType();
global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultDrop operation = new global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultDrop(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice DsspDefaultDrop(out global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultDrop operation) {
global::Microsoft.Dss.ServiceModel.Dssp.DropRequestType body = new global::Microsoft.Dss.ServiceModel.Dssp.DropRequestType();
operation = new global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultDrop(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.DefaultDropResponseType, global::W3C.Soap.Fault> DsspDefaultDrop(global::Microsoft.Dss.ServiceModel.Dssp.DropRequestType body) {
if ((body == null)) {
body = new global::Microsoft.Dss.ServiceModel.Dssp.DropRequestType();
}
global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultDrop operation = new global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultDrop(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice DsspDefaultDrop(global::Microsoft.Dss.ServiceModel.Dssp.DropRequestType body, out global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultDrop operation) {
if ((body == null)) {
body = new global::Microsoft.Dss.ServiceModel.Dssp.DropRequestType();
}
operation = new global::Microsoft.Dss.ServiceModel.Dssp.DsspDefaultDrop(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::MyLegoCarService.Proxy.MyLegoCarServiceState, global:: W3C.Soap.Fault> Get() {
global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType body = new global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType();
global::MyLegoCarService.Proxy.Get operation = new global::MyLegoCarService.Proxy.Get(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice Get(out global::MyLegoCarService.Proxy.Get operation) {
global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType body = new global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType();
operation = new global::MyLegoCarService.Proxy.Get(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::MyLegoCarService.Proxy.MyLegoCarServiceState, global:: W3C.Soap.Fault> Get(global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType body) {
if ((body == null)) {
body = new global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType();
}
global::MyLegoCarService.Proxy.Get operation = new global::MyLegoCarService.Proxy.Get(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice Get(global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType body, out global::MyLegoCarService.Proxy.Get operation) {
if ((body == null)) {
body = new global::Microsoft.Dss.ServiceModel.Dssp.GetRequestType();
}
operation = new global::MyLegoCarService.Proxy.Get(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.SubscribeResponseType, global:: W3C.Soap.Fault> Subscribe(global::Microsoft.Ccr.Core.IPort notificationPort, params System.Type[] types) {
global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType body = new global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType();
global::MyLegoCarService.Proxy.Subscribe operation = new global::MyLegoCarService.Proxy.Subscribe(body);
operation.NotificationPort = notificationPort;
if ((types != null)) {
body.TypeFilter = new string[types.Length];
for (int index = 0; (index < types.Length); index = (index + 1)) {
body.TypeFilter[index] = global::Microsoft.Dss.ServiceModel.DsspServiceBase.DsspServiceBase.GetTypeFilterDescription(types[index]);
}
}
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice Subscribe(global::Microsoft.Ccr.Core.IPort notificationPort, out global::MyLegoCarService.Proxy.Subscribe operation, params System.Type[] types) {
global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType body = new global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType();
operation = new global::MyLegoCarService.Proxy.Subscribe(body);
operation.NotificationPort = notificationPort;
if ((types != null)) {
body.TypeFilter = new string[types.Length];
for (int index = 0; (index < types.Length); index = (index + 1)) {
body.TypeFilter[index] = global::Microsoft.Dss.ServiceModel.DsspServiceBase.DsspServiceBase.GetTypeFilterDescription(types[index]);
}
}
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.SubscribeResponseType, global:: W3C.Soap.Fault> Subscribe(global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType body, global::Microsoft.Ccr.Core.IPort notificationPort, params System.Type[] types) {
if ((body == null)) {
body = new global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType();
}
global::MyLegoCarService.Proxy.Subscribe operation = new global::MyLegoCarService.Proxy.Subscribe(body);
operation.NotificationPort = notificationPort;
if ((types != null)) {
body.TypeFilter = new string[types.Length];
for (int index = 0; (index < types.Length); index = (index + 1)) {
body.TypeFilter[index] = global::Microsoft.Dss.ServiceModel.DsspServiceBase.DsspServiceBase.GetTypeFilterDescription(types[index]);
}
}
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice Subscribe(global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType body, global::Microsoft.Ccr.Core.IPort notificationPort, out global::MyLegoCarService.Proxy.Subscribe operation, params System.Type[] types) {
if ((body == null)) {
body = new global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType();
}
operation = new global::MyLegoCarService.Proxy.Subscribe(body);
operation.NotificationPort = notificationPort;
if ((types != null)) {
body.TypeFilter = new string[types.Length];
for (int index = 0; (index < types.Length); index = (index + 1)) {
body.TypeFilter[index] = global::Microsoft.Dss.ServiceModel.DsspServiceBase.DsspServiceBase.GetTypeFilterDescription(types[index]);
}
}
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.DefaultUpdateResponseType, global:: W3C.Soap.Fault> TimerTick() {
global::MyLegoCarService.Proxy.TimerTickRequest body = new global::MyLegoCarService.Proxy.TimerTickRequest();
global::MyLegoCarService.Proxy.TimerTick operation = new global::MyLegoCarService.Proxy.TimerTick(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice TimerTick(out global::MyLegoCarService.Proxy.TimerTick operation) {
global::MyLegoCarService.Proxy.TimerTickRequest body = new global::MyLegoCarService.Proxy.TimerTickRequest();
operation = new global::MyLegoCarService.Proxy.TimerTick(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.PortSet<global::Microsoft.Dss.ServiceModel.Dssp.DefaultUpdateResponseType, global:: W3C.Soap.Fault> TimerTick(global::MyLegoCarService.Proxy.TimerTickRequest body) {
if ((body == null)) {
body = new global::MyLegoCarService.Proxy.TimerTickRequest();
}
global::MyLegoCarService.Proxy.TimerTick operation = new global::MyLegoCarService.Proxy.TimerTick(body);
this.Post(operation);
return operation.ResponsePort;
}
public virtual global::Microsoft.Ccr.Core.Choice TimerTick(global::MyLegoCarService.Proxy.TimerTickRequest body, out global::MyLegoCarService.Proxy.TimerTick operation) {
if ((body == null)) {
body = new global::MyLegoCarService.Proxy.TimerTickRequest();
}
operation = new global::MyLegoCarService.Proxy.TimerTick(body);
this.Post(operation);
return operation.ResponsePort;
}
}
[global::System.Xml.Serialization.XmlTypeAttribute(IncludeInSchema=false)]
[global::System.ComponentModel.DescriptionAttribute("MyLegoCarService service (no description provided)")]
[global::System.ComponentModel.DisplayNameAttribute("MyLegoCarService")]
public class Contract {
public const string Identifier = "http://schemas.tempuri.org/2010/09/mylegocarservice.html";
/// <summary>Creates a new instance of the service.</summary>
/// <param name="constructorServicePort">Service constructor port</param>
/// <param name="service">service path</param>
/// <param name="partners">the partners of the service instance</param>
/// <returns>create service response port</returns>
public static global::Microsoft.Dss.ServiceModel.Dssp.DsspResponsePort<Microsoft.Dss.ServiceModel.Dssp.CreateResponse> CreateService(global::Microsoft.Dss.Services.Constructor.ConstructorPort constructorServicePort, string service, params Microsoft.Dss.ServiceModel.Dssp.PartnerType[] partners) {
global::Microsoft.Dss.ServiceModel.Dssp.DsspResponsePort<Microsoft.Dss.ServiceModel.Dssp.CreateResponse> result = new global::Microsoft.Dss.ServiceModel.Dssp.DsspResponsePort<Microsoft.Dss.ServiceModel.Dssp.CreateResponse>();
global::Microsoft.Dss.ServiceModel.Dssp.ServiceInfoType serviceInfo = new global::Microsoft.Dss.ServiceModel.Dssp.ServiceInfoType("http://schemas.tempuri.org/2010/09/mylegocarservice.html", service);
if ((partners != null)) {
serviceInfo.PartnerList = new System.Collections.Generic.List<Microsoft.Dss.ServiceModel.Dssp.PartnerType>(partners);
}
global::Microsoft.Dss.Services.Constructor.Create create = new global::Microsoft.Dss.Services.Constructor.Create(serviceInfo, result);
constructorServicePort.Post(create);
return result;
}
/// <summary>Creates a new instance of the service.</summary>
/// <param name="constructorServicePort">Service constructor port</param>
/// <param name="partners">the partners of the service instance</param>
/// <returns>create service response port</returns>
public static global::Microsoft.Dss.ServiceModel.Dssp.DsspResponsePort<Microsoft.Dss.ServiceModel.Dssp.CreateResponse> CreateService(global::Microsoft.Dss.Services.Constructor.ConstructorPort constructorServicePort, params Microsoft.Dss.ServiceModel.Dssp.PartnerType[] partners) {
global::Microsoft.Dss.ServiceModel.Dssp.DsspResponsePort<Microsoft.Dss.ServiceModel.Dssp.CreateResponse> result = new global::Microsoft.Dss.ServiceModel.Dssp.DsspResponsePort<Microsoft.Dss.ServiceModel.Dssp.CreateResponse>();
global::Microsoft.Dss.ServiceModel.Dssp.ServiceInfoType serviceInfo = new global::Microsoft.Dss.ServiceModel.Dssp.ServiceInfoType("http://schemas.tempuri.org/2010/09/mylegocarservice.html", null);
if ((partners != null)) {
serviceInfo.PartnerList = new System.Collections.Generic.List<Microsoft.Dss.ServiceModel.Dssp.PartnerType>(partners);
}
global::Microsoft.Dss.Services.Constructor.Create create = new global::Microsoft.Dss.Services.Constructor.Create(serviceInfo, result);
constructorServicePort.Post(create);
return result;
}
}
public class CombinedOperationsPort : global::Microsoft.Dss.Core.DssCombinedOperationsPort {
public CombinedOperationsPort() {
this.MyLegoCarServiceOperations = new global::MyLegoCarService.Proxy.MyLegoCarServiceOperations();
base.Initialize(new global::Microsoft.Dss.Core.DssOperationsPortMetadata(this.MyLegoCarServiceOperations, "http://schemas.tempuri.org/2010/09/mylegocarservice.html", "MyLegoCarServiceOperations", ""));
}
public global::MyLegoCarService.Proxy.MyLegoCarServiceOperations MyLegoCarServiceOperations;
}
}