本文整理汇总了C#中Protocols类的典型用法代码示例。如果您正苦于以下问题:C# Protocols类的具体用法?C# Protocols怎么用?C# Protocols使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Protocols类属于命名空间,在下文中一共展示了Protocols类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: RejectRule
public RejectRule(FireWallChains chain, string networkInterface, Protocols protocol, ICMPTypes? icmpType, IPAddress source, IPAddress sourceNetworkMask,
FirewallPort sourcePort, IPAddress destination, IPAddress destinationNetworkMask, FirewallPort destinationPort,
ConnectionStateTypes[] connectionStates,string note,RejectOptions rejectWith) :
base(chain,networkInterface, protocol, icmpType, source, sourceNetworkMask, sourcePort, destination, destinationNetworkMask, destinationPort, connectionStates,note)
{
_rejectWith = rejectWith;
}
开发者ID:marquismark,项目名称:freeswitchconfig,代码行数:7,代码来源:RejectRule.cs
示例2: IsGameContinuation
public bool IsGameContinuation(Protocols.UciGameData data,
out List<Move> extra_moves)
{
Debug.Assert(data != null);
extra_moves = null;
if (m_initial_position != data.m_initial_position
|| m_moves.Count > (data.m_moves == null ? 0 : data.m_moves.Count))
{
return false;
}
for (int i = 0; i < m_moves.Count; ++i)
{
if (NotationHelper.ToCoordinateNotation(m_moves[i])
!= data.m_moves[i])
{
return false;
}
}
if (data.m_moves != null && data.m_moves.Count > m_moves.Count)
{
extra_moves = new List<Move>(data.m_moves.Count - m_moves.Count);
for (int i = m_moves.Count; i < data.m_moves.Count; ++i)
{
extra_moves.Add(Move.MakeFromCoordinates(data.m_moves[i]));
}
}
return true;
}
开发者ID:maksimbulva,项目名称:chesshive,代码行数:32,代码来源:Game.cs
示例3: CommandSetPosition
public CommandSetPosition(Protocols.UciGameData data)
{
if (data == null)
{
throw new ArgumentNullException();
}
m_uci_data = data;
}
开发者ID:maksimbulva,项目名称:chesshive,代码行数:8,代码来源:CommandSetPosition.cs
示例4: Tunnel
public Tunnel(bool is_server, ulong remote_userid, Service service, Protocols protocols, ushort server_port)
{
_remote_userid = remote_userid;
_is_server = is_server;
_service = service;
_server_port = server_port;
_protocols = protocols;
state = TunnelState.Initial;
}
开发者ID:Nayruden,项目名称:NetTunnel,代码行数:9,代码来源:Tunnel.cs
示例5: GetCookiesForCannedPolicy
/// <summary>
/// Returns signed cookies that grants universal access to private content until a given date.
/// </summary>
/// <param name="protocol">The protocol used to access content using signed cookies.</param>
/// <param name="distributionDomain">The domain name of the distribution.</param>
/// <param name="resourcePath">The path for the resource.</param>
/// <param name="privateKey">The private key file. RSA private key (.pem) are supported.</param>
/// <param name="keyPairId">The key pair id corresponding to the private key file given.</param>
/// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param>
/// <returns>The signed cookies.</returns>
public static CookiesForCannedPolicy GetCookiesForCannedPolicy(Protocols protocol,
string distributionDomain,
TextReader privateKey,
string resourcePath,
string keyPairId,
DateTime expiresOn)
{
string url = GenerateResourcePath(protocol, distributionDomain, resourcePath);
return GetCookiesForCannedPolicy(url, keyPairId, privateKey, expiresOn);
}
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:20,代码来源:AmazonCloudFrontCookieSigner.cs
示例6: Protocol
/// <summary>
/// Initializes a new instance of the Protocol class to be extended by derived types.
/// </summary>
/// <param name="connectionString">Connection string to be parsed.</param>
/// <param name="protocol">Derived protocol type.</param>
protected Protocol(string connectionString, Protocols protocol)
{
this.Type = protocol;
var fields = Parse(connectionString);
var properties = this.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public);
foreach (var property in properties.Where(property => property.Name != "Type" && fields.ContainsKey(property.Name)))
{
property.SetValue(this, fields[property.Name], null);
}
}
开发者ID:akurdyukov,项目名称:NBug,代码行数:16,代码来源:Protocol.cs
示例7: GetCookiesForCannedPolicy
/// <summary>
/// Returns signed cookies that grants universal access to private content until a given date.
/// </summary>
/// <param name="protocol">The protocol used to access content using signed cookies.</param>
/// <param name="distributionDomain">The domain name of the distribution.</param>
/// <param name="resourcePath">The path for the resource.</param>
/// <param name="privateKey">The private key file. RSA private key (.pem) are supported.</param>
/// <param name="keyPairId">The key pair id corresponding to the private key file given.</param>
/// <param name="expiresOn">The expiration date till which content can be accessed using the generated cookies.</param>
/// <returns>The signed cookies.</returns>
public static CookiesForCannedPolicy GetCookiesForCannedPolicy(Protocols protocol,
string distributionDomain,
FileSystemInfo privateKey,
string resourcePath,
string keyPairId,
DateTime expiresOn)
{
using (var reader = new StreamReader(File.OpenRead(privateKey.FullName)))
{
return GetCookiesForCannedPolicy(protocol, distributionDomain, reader, resourcePath, keyPairId, expiresOn);
}
}
开发者ID:aws,项目名称:aws-sdk-net,代码行数:22,代码来源:AmazonCloudFrontCookieSigner.cs
示例8: LogRule
public LogRule(FireWallChains chain, string networkInterface, Protocols protocol, ICMPTypes? icmpType, IPAddress source, IPAddress sourceNetworkMask,
FirewallPort sourcePort, IPAddress destination, IPAddress destinationNetworkMask, FirewallPort destinationPort,
ConnectionStateTypes[] connectionStates,string note,LogLevels level,string logPrefix,bool logTcpOptions,bool logTcpSequence,bool logIPOptions) :
base(chain,networkInterface, protocol, icmpType, source, sourceNetworkMask, sourcePort, destination, destinationNetworkMask, destinationPort, connectionStates,note)
{
_logLevel = level;
_logPrefix = logPrefix;
_logTcpOptions = logTcpOptions;
_logTcpSequence = logTcpSequence;
_logIPOptions = logIPOptions;
if (_logPrefix != null)
{
if (_logPrefix.Length > 29)
throw new Exception("The log prefix " + _logPrefix + " is too long, it cannot exceed 29 characters.");
}
}
开发者ID:marquismark,项目名称:freeswitchconfig,代码行数:16,代码来源:LogRule.cs
示例9: CreateRequest
protected Protocols.Http.Request CreateRequest(Protocols.Http.Methods.Base method, Uri uri,
string contentType)
{
Protocols.Http.Request request;
MultisourcedStream fullStream;
long fullContentLength;
request = new Protocols.Http.Request(method, uri);
fullStream = MakeStream(out fullContentLength);
request.Headers.Add(new Protocols.Http.Message.ContentLengthHeader(fullContentLength));
request.Body.IsChunked = false;
request.Body.SendStream = fullStream;
return request;
}
开发者ID:274706834,项目名称:opendms-dot-net,代码行数:18,代码来源:RequestBase.cs
示例10: ULogRule
public ULogRule(FireWallChains chain, string networkInterface, Protocols protocol, ICMPTypes? icmpType, IPAddress source, IPAddress sourceNetworkMask,
FirewallPort sourcePort, IPAddress destination, IPAddress destinationNetworkMask, FirewallPort destinationPort,
ConnectionStateTypes[] connectionStates,string note,byte logGroup,string prefix,uint bytesToCopy,ushort queueSize) :
base(chain,networkInterface, protocol, icmpType, source, sourceNetworkMask, sourcePort, destination, destinationNetworkMask, destinationPort, connectionStates,note)
{
_logGroup = logGroup;
_prefix = prefix;
_bytesToCopy = bytesToCopy;
_queueSize = queueSize;
if (_prefix != null)
{
if (_prefix.Length > 32)
throw new Exception("Unable to create ULog rule with a message prefix greater than 32 characters.");
}
if (_logGroup < 1 || _logGroup > 32)
throw new Exception("Unable to create ULog rule with a log group not from 1-32.");
if (_queueSize < 1)
throw new Exception("Unable to create a ULog rule with a queue size less than 1.");
}
开发者ID:marquismark,项目名称:freeswitchconfig,代码行数:19,代码来源:ULogRule.cs
示例11: AcceptQuote
public Protocols.ToolkitResultProtocol AcceptQuote(Protocols.Contracts.AcceptQuoteSetupProtocol setupParam)
{
ClarifySession session = Global.GetSession( AuthHeader );
FChoice.Toolkits.Clarify.Contracts.ContractsToolkit toolkit = new FChoice.Toolkits.Clarify.Contracts.ContractsToolkit( session );
FChoice.Toolkits.Clarify.Contracts.AcceptQuoteSetup setup;
switch( setupParam.ConstructorCue )
{
case 0:
setup = new FChoice.Toolkits.Clarify.Contracts.AcceptQuoteSetup(setupParam.QuoteIDNum);
break;
default:
throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
}
if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
{
setup.QuoteIDNum = setupParam.QuoteIDNum;
}
if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
{
setup.AcceptDate = setupParam.AcceptDate;
}
if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
{
setup.WipBin = setupParam.WipBin;
}
if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
{
setup.UserName = setupParam.UserName;
}
if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
{
setup.GenerateTimeBombs = setupParam.GenerateTimeBombs;
}
return new Protocols.ToolkitResultProtocol( toolkit.AcceptQuote(setup) );
}
开发者ID:DovetailSoftware,项目名称:dovetail-sdk-web-services,代码行数:42,代码来源:ContractsToolkitSrv.asmx.cs
示例12: ApplyEco
public Protocols.ToolkitResultProtocol ApplyEco(Protocols.DepotRepair.ApplyEcoSetupProtocol setupParam)
{
ClarifySession session = Global.GetSession( AuthHeader );
FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit( session );
FChoice.Toolkits.Clarify.DepotRepair.ApplyEcoSetup setup;
switch( setupParam.ConstructorCue )
{
case 0:
setup = new FChoice.Toolkits.Clarify.DepotRepair.ApplyEcoSetup(setupParam.DemandDetailObjid, setupParam.EcoHeaderIDNum);
break;
default:
throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
}
if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
{
setup.DemandDetailObjid = setupParam.DemandDetailObjid;
}
if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
{
setup.EcoHeaderIDNum = setupParam.EcoHeaderIDNum;
}
if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
{
setup.UserName = setupParam.UserName;
}
if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
{
setup.CreateDate = setupParam.CreateDate;
}
return new Protocols.ToolkitResultProtocol( toolkit.ApplyEco(setup) );
}
开发者ID:DovetailSoftware,项目名称:dovetail-sdk-web-services,代码行数:37,代码来源:DepotRepairToolkitSrv.asmx.cs
示例13: ReadCustomDispatcherDestinationSettings
/// <summary>
/// Returns null if the custom settings file is not found so check for null object reference.
/// </summary>
internal List<string> ReadCustomDispatcherDestinationSettings(Protocols protocol)
{
// This generates a sample settings file for future reference
/*this.dispatcherDestinations.Add("Just testing this stuff.");
var serializer = new XmlSerializer(typeof(List<string>));
using (FileStream stream = new FileStream("DispatcherDestinations.xml", FileMode.Create))
{
serializer.Serialize(stream, this.dispatcherDestinations);
}*/
// Make sure that settings are red and cached only once during the object lifetime
if (this.dispatcherDestinations == null)
{
this.dispatcherDestinations = new List<string>();
var path = Path.Combine(Settings.NBugDirectory, "DispatcherDestinations.xml");
if (!File.Exists(path))
{
path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Docs\\ASFT\\Dev\\_Tools\\Settings\\DispatcherDestinations.xml");
if (!File.Exists(path))
{
return null;
}
}
var serializer = new XmlSerializer(typeof(List<string>));
using (var stream = new FileStream(path, FileMode.Open))
{
this.dispatcherDestinations = (List<string>)serializer.Deserialize(stream);
}
}
return (from destination in this.dispatcherDestinations
where Enum.Parse(typeof(Protocols), Protocol.Parse(destination)["Type"], true).Equals(protocol)
select destination).ToList();
}
开发者ID:dakahler,项目名称:alloclave,代码行数:40,代码来源:SettingsFixture.cs
示例14: LogContractNote
public Protocols.ToolkitResultProtocol LogContractNote(Protocols.Contracts.LogContractNoteSetupProtocol setupParam)
{
ClarifySession session = Global.GetSession( AuthHeader );
FChoice.Toolkits.Clarify.Contracts.ContractsToolkit toolkit = new FChoice.Toolkits.Clarify.Contracts.ContractsToolkit( session );
FChoice.Toolkits.Clarify.Contracts.LogContractNoteSetup setup;
switch( setupParam.ConstructorCue )
{
case 0:
setup = new FChoice.Toolkits.Clarify.Contracts.LogContractNoteSetup(setupParam.ContractIDNum, setupParam.Notes);
break;
default:
throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
}
if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
{
setup.ContractIDNum = setupParam.ContractIDNum;
}
if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
{
setup.ActionType = setupParam.ActionType;
}
if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
{
setup.Notes = setupParam.Notes;
}
if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
{
setup.InternalUseOnlyNotes = setupParam.InternalUseOnlyNotes;
}
if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
{
setup.LogDate = setupParam.LogDate;
}
if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
{
setup.UserName = setupParam.UserName;
}
if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
{
setup.GenerateTimeBombs = setupParam.GenerateTimeBombs;
}
if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
{
foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);}
}
return new Protocols.ToolkitResultProtocol( toolkit.LogContractNote(setup) );
}
开发者ID:DovetailSoftware,项目名称:dovetail-sdk-web-services,代码行数:57,代码来源:ContractsToolkitSrv.asmx.cs
示例15: DeleteSitePart
public Protocols.ToolkitResultProtocol DeleteSitePart(Protocols.Contracts.DeleteSitePartSetupProtocol setupParam)
{
ClarifySession session = Global.GetSession( AuthHeader );
FChoice.Toolkits.Clarify.Contracts.ContractsToolkit toolkit = new FChoice.Toolkits.Clarify.Contracts.ContractsToolkit( session );
FChoice.Toolkits.Clarify.Contracts.DeleteSitePartSetup setup;
switch( setupParam.ConstructorCue )
{
case 0:
setup = new FChoice.Toolkits.Clarify.Contracts.DeleteSitePartSetup(setupParam.SitePartObjid);
break;
default:
throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
}
if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
{
setup.SitePartObjid = setupParam.SitePartObjid;
}
return new Protocols.ToolkitResultProtocol( toolkit.DeleteSitePart(setup) );
}
开发者ID:DovetailSoftware,项目名称:dovetail-sdk-web-services,代码行数:22,代码来源:ContractsToolkitSrv.asmx.cs
示例16: CreateSchedule
public Protocols.ToolkitResultProtocol CreateSchedule(Protocols.Contracts.CreateScheduleSetupProtocol setupParam)
{
ClarifySession session = Global.GetSession( AuthHeader );
FChoice.Toolkits.Clarify.Contracts.ContractsToolkit toolkit = new FChoice.Toolkits.Clarify.Contracts.ContractsToolkit( session );
FChoice.Toolkits.Clarify.Contracts.CreateScheduleSetup setup;
switch( setupParam.ConstructorCue )
{
case 0:
setup = new FChoice.Toolkits.Clarify.Contracts.CreateScheduleSetup(setupParam.ContractIDNum);
break;
default:
throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
}
if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
{
setup.ContractIDNum = setupParam.ContractIDNum;
}
if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
{
setup.ScheduleIDNum = setupParam.ScheduleIDNum;
}
if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
{
setup.BillSiteIDNum = setupParam.BillSiteIDNum;
}
if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
{
setup.BillingATTN = setupParam.BillingATTN;
}
if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
{
setup.ShipToSiteIDNum = setupParam.ShipToSiteIDNum;
}
if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
{
setup.PriceProgram = setupParam.PriceProgram;
}
if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
{
setup.BillingFrequency = setupParam.BillingFrequency;
}
if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) )
{
setup.BillingOption = setupParam.BillingOption;
}
if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) )
{
setup.BillingPeriodStartDate = setupParam.BillingPeriodStartDate;
}
if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) )
{
setup.FirstBillingDate = setupParam.FirstBillingDate;
}
if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) )
{
setup.ChargeStartDate = setupParam.ChargeStartDate;
}
if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) )
{
setup.ChargeEndDate = setupParam.ChargeEndDate;
}
if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) )
{
foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);}
}
return new Protocols.ToolkitResultProtocol( toolkit.CreateSchedule(setup) );
}
开发者ID:DovetailSoftware,项目名称:dovetail-sdk-web-services,代码行数:82,代码来源:ContractsToolkitSrv.asmx.cs
示例17: CreatePriceInstance
public Protocols.ToolkitResultProtocol CreatePriceInstance(Protocols.Contracts.CreatePriceInstanceSetupProtocol setupParam)
{
ClarifySession session = Global.GetSession( AuthHeader );
FChoice.Toolkits.Clarify.Contracts.ContractsToolkit toolkit = new FChoice.Toolkits.Clarify.Contracts.ContractsToolkit( session );
FChoice.Toolkits.Clarify.Contracts.CreatePriceInstanceSetup setup;
switch( setupParam.ConstructorCue )
{
case 0:
setup = new FChoice.Toolkits.Clarify.Contracts.CreatePriceInstanceSetup(setupParam.PartNumber, setupParam.PartRevision, setupParam.PartDomain, setupParam.SupportProgram, setupParam.PriceProgram, setupParam.PriceType, setupParam.Quantity);
break;
default:
throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
}
if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
{
setup.PartNumber = setupParam.PartNumber;
}
if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
{
setup.PartRevision = setupParam.PartRevision;
}
if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
{
setup.PartDomain = setupParam.PartDomain;
}
if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
{
setup.SupportProgram = setupParam.SupportProgram;
}
if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
{
setup.PriceProgram = setupParam.PriceProgram;
}
if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
{
setup.PriceType = setupParam.PriceType;
}
if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
{
setup.Quantity = setupParam.Quantity;
}
if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
{
setup.Price = setupParam.Price;
}
if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) )
{
setup.EffectiveDate = setupParam.EffectiveDate;
}
if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) )
{
setup.ExpireDate = setupParam.ExpireDate;
}
if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) )
{
foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);}
}
return new Protocols.ToolkitResultProtocol( toolkit.CreatePriceInstance(setup) );
}
开发者ID:DovetailSoftware,项目名称:dovetail-sdk-web-services,代码行数:72,代码来源:ContractsToolkitSrv.asmx.cs
示例18: CreateContractLineItem
public Protocols.ToolkitResultProtocol CreateContractLineItem(Protocols.Contracts.CreateContractLineItemSetupProtocol setupParam)
{
ClarifySession session = Global.GetSession( AuthHeader );
FChoice.Toolkits.Clarify.Contracts.ContractsToolkit toolkit = new FChoice.Toolkits.Clarify.Contracts.ContractsToolkit( session );
FChoice.Toolkits.Clarify.Contracts.CreateContractLineItemSetup setup;
switch( setupParam.ConstructorCue )
{
case 0:
setup = new FChoice.Toolkits.Clarify.Contracts.CreateContractLineItemSetup(setupParam.ContractIDNum, setupParam.PartNumber, setupParam.PartDomain, setupParam.PartRevision, setupParam.Quantity, setupParam.PriceSchedule, setupParam.ParentLineItemObjid);
break;
case 1:
setup = new FChoice.Toolkits.Clarify.Contracts.CreateContractLineItemSetup(setupParam.ContractIDNum, setupParam.PartNumber, setupParam.PartDomain, setupParam.PartRevision, setupParam.PriceSchedule, setupParam.SerialNumber, setupParam.ParentLineItemObjid);
break;
default:
throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
}
if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
{
setup.ContractIDNum = setupParam.ContractIDNum;
}
if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
{
setup.UserName = setupParam.UserName;
}
if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
{
setup.CreateDate = setupParam.CreateDate;
}
if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
{
setup.StartDate = setupParam.StartDate;
}
if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
{
setup.EndDate = setupParam.EndDate;
}
if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
{
setup.PartNumber = setupParam.PartNumber;
}
if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
{
setup.PartDomain = setupParam.PartDomain;
}
if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
{
setup.PartRevision = setupParam.PartRevision;
}
if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) )
{
setup.Quantity = setupParam.Quantity;
}
if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) )
{
setup.PriceSchedule = setupParam.PriceSchedule;
}
if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) )
{
setup.OverridePrice = setupParam.OverridePrice;
}
if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) )
{
setup.UnitsUsed = setupParam.UnitsUsed;
}
if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) )
{
setup.SerialNumber = setupParam.SerialNumber;
}
if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) )
{
setup.IsTaxable = setupParam.IsTaxable;
}
if( Global.IsPropertyDirty(16384, setupParam.DirtyFieldFlags) )
{
setup.AutoInstall = setupParam.AutoInstall;
}
if( Global.IsPropertyDirty(32768, setupParam.DirtyFieldFlags) )
{
setup.Comments = setupParam.Comments;
}
if( Global.IsPropertyDirty(65536, setupParam.DirtyFieldFlags) )
{
//.........这里部分代码省略.........
开发者ID:DovetailSoftware,项目名称:dovetail-sdk-web-services,代码行数:101,代码来源:ContractsToolkitSrv.asmx.cs
示例19: CreateContract
public Protocols.ToolkitResultProtocol CreateContract(Protocols.Contracts.CreateContractSetupProtocol setupParam)
{
ClarifySession session = Global.GetSession( AuthHeader );
FChoice.Toolkits.Clarify.Contracts.ContractsToolkit toolkit = new FChoice.Toolkits.Clarify.Contracts.ContractsToolkit( session );
FChoice.Toolkits.Clarify.Contracts.CreateContractSetup setup;
switch( setupParam.ConstructorCue )
{
case 0:
setup = new FChoice.Toolkits.Clarify.Contracts.CreateContractSetup(setupParam.Title);
break;
default:
throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
}
if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
{
setup.ContractIDNum = setupParam.ContractIDNum;
}
if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
{
setup.Title = setupParam.Title;
}
if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
{
setup.CreateDate = setupParam.CreateDate;
}
if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
{
setup.AccountIDNum = setupParam.AccountIDNum;
}
if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
{
setup.AccountName = setupParam.AccountName;
}
if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
{
setup.ContactFirstName = setupParam.ContactFirstName;
}
if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
{
setup.ContactLastName = setupParam.ContactLastName;
}
if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
{
setup.ContactPhone = setupParam.ContactPhone;
}
if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) )
{
setup.ContractType = setupParam.ContractType;
}
if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) )
{
setup.Terms = setupParam.Terms;
}
if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) )
{
setup.PriceProgram = setupParam.PriceProgram;
}
if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) )
{
setup.Status = setupParam.Status;
}
if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) )
{
setup.AdminUserName = setupParam.AdminUserName;
}
if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) )
{
setup.BillToSiteIDNum = setupParam.BillToSiteIDNum;
}
if( Global.IsPropertyDirty(16384, setupParam.DirtyFieldFlags) )
{
setup.ShipToSiteIDNum = setupParam.ShipToSiteIDNum;
}
if( Global.IsPropertyDirty(32768, setupParam.DirtyFieldFlags) )
{
setup.StartDate = setupParam.StartDate;
}
if( Global.IsPropertyDirty(65536, setupParam.DirtyFieldFlags) )
{
setup.ExpireDate = setupParam.ExpireDate;
}
//.........这里部分代码省略.........
开发者ID:DovetailSoftware,项目名称:dovetail-sdk-web-services,代码行数:101,代码来源:ContractsToolkitSrv.asmx.cs
示例20: UpdateDepotRepairMaterial
public Protocols.ToolkitResultProtocol UpdateDepotRepairMaterial(Protocols.DepotRepair.UpdateDepotRepairMaterialSetupProtocol setupParam)
{
ClarifySession session = Global.GetSession( AuthHeader );
FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit( session );
FChoice.Toolkits.Clarify.DepotRepair.UpdateDepotRepairMaterialSetup setup;
switch( setupParam.ConstructorCue )
{
case 0:
setup = new FChoice.Toolkits.Clarify.DepotRepair.UpdateDepotRepairMaterialSetup(setupParam.MaterialLogObjid, setupParam.Disposition);
break;
default:
throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
}
if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
{
setup.MaterialLogObjid = setupParam.MaterialLogObjid;
}
if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
{
setup.RepairCode = setupParam.RepairCode;
}
if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
{
setup.FailureCode = setupParam.FailureCode;
}
if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
{
setup.PartRevisionObjid = setupParam.PartRevisionObjid;
}
if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
{
setup.IsBillable = setupParam.IsBillable;
}
if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
{
setup.BillTo = setupParam.BillTo;
}
if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
{
setup.WorkCenter = setupParam.WorkCenter;
}
if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
{
setup.Disposition = setupParam.Disposition;
}
if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) )
{
setup.ReferenceDesignator = setupParam.ReferenceDesignator;
}
if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) )
{
setup.Notes = setupParam.Notes;
}
if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) )
{
setup.TransactionID = setupParam.TransactionID;
}
if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) )
{
setup.UserName = setupParam.UserName;
}
if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) )
{
setup.CreateDate = setupParam.CreateDate;
}
return new Protocols.ToolkitResultProtocol( toolkit.UpdateDepotRepairMaterial(setup) );
}
开发者ID:DovetailSoftware,项目名称:dovetail-sdk-web-services,代码行数:82,代码来源:DepotRepairToolkitSrv.asmx.cs
注:本文中的Protocols类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论