本文整理汇总了C#中Org类的典型用法代码示例。如果您正苦于以下问题:C# Org类的具体用法?C# Org怎么用?C# Org使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Org类属于命名空间,在下文中一共展示了Org类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Append
public override void Append(ref Dictionary<string, object> variables, Org.Reddragonit.Stringtemplate.Outputs.IOutputWriter writer)
{
object obj = Utility.LocateObjectInVariables(val, variables);
if (obj == null)
throw new Exception("Unable to locate a variable of the name " + val + " in order to extract the type name");
writer.Append(obj.GetType().FullName);
}
开发者ID:marquismark,项目名称:stringtemplate,代码行数:7,代码来源:TypeName.cs
示例2: IsValid
public bool IsValid(Org.BouncyCastle.Asn1.X509.X509CertificateStructure[] certs)
{
if (OnVerifyCertificate != null)
return OnVerifyCertificate(certs);
else
return true;
}
开发者ID:phiree,项目名称:dzdocs,代码行数:7,代码来源:CertificateVerifier.cs
示例3: Append
public override void Append(ref Dictionary<string,object> variables, Org.Reddragonit.Stringtemplate.Outputs.IOutputWriter writer)
{
object obj = Utility.LocateObjectInVariables(_variable, variables);
_format = (Utility.LocateObjectInVariables(_format, variables) != null ? Utility.LocateObjectInVariables(_format, variables) : _format).ToString();
if (obj != null)
writer.Append(((IFormattable)Utility.LocateObjectInVariables(_variable, variables)).ToString(_format, null));
}
开发者ID:marquismark,项目名称:stringtemplate,代码行数:7,代码来源:Format.cs
示例4: GetChildren2Response
public GetChildren2Response(
System.Collections.Generic.IEnumerable<string> children
,
Org.Apache.Zookeeper.Data.Stat stat
) {
Children=children;
Stat=stat;
}
开发者ID:CMTelecom,项目名称:kafka-net,代码行数:8,代码来源:GetChildren2Response.cs
示例5: GetACLResponse
public GetACLResponse(
System.Collections.Generic.IEnumerable<Org.Apache.Zookeeper.Data.ACL> acl
,
Org.Apache.Zookeeper.Data.Stat stat
) {
Acl=acl;
Stat=stat;
}
开发者ID:CMTelecom,项目名称:kafka-net,代码行数:8,代码来源:GetACLResponse.cs
示例6: PkcsCertificate
/// <summary>
/// Public constructor for a Pkcs certificate, takes in values to describe it's state.
/// </summary>
/// <param name="password">The value used to secure (encrypt) the private key with the certificate</param>
/// <param name="keypair">An object used for manipulating/accessing the public and private key of a certificate</param>
/// <param name="cert">An easy to manipulate version of an X509 certificate</param>
/// <param name="store">A store of Pkcs12 certificates used to store and manipulate certificat chains and key associations</param>
public PkcsCertificate(string password ,AsymmetricCipherKeyPair keypair, Org.BouncyCastle.X509.X509Certificate cert, Pkcs12Store store)
{
this.Password = password;
this.Keypair = keypair;
this.X509Certificate = cert;
this.PkcsStore = store;
// this is not the best place to do this
}
开发者ID:hughshanahan,项目名称:GWydiR,代码行数:15,代码来源:PkcsCertificate.cs
示例7: GetAttributeSet
public static Asn1Set GetAttributeSet(Org.BouncyCastle.Asn1.Cms.AttributeTable attr)
{
if (attr != null)
{
return new DerSet(attr.ToAsn1EncodableVector());
}
return null;
}
开发者ID:bibou1324,项目名称:clienteafirma,代码行数:8,代码来源:SigUtils.cs
示例8: GetDataResponse
public GetDataResponse(
byte[] data
,
Org.Apache.Zookeeper.Data.Stat stat
) {
Data=data;
Stat=stat;
}
开发者ID:CMTelecom,项目名称:kafka-net,代码行数:8,代码来源:GetDataResponse.cs
示例9: ACL
public ACL(
int perms
,
Org.Apache.Zookeeper.Data.ZKId id
) {
Perms=perms;
Id=id;
}
开发者ID:CMTelecom,项目名称:kafka-net,代码行数:8,代码来源:ACL.cs
示例10: ToByteArray
public static byte[] ToByteArray(Org.BouncyCastle.Math.BigInteger bigint, int expectedLength)
{
byte[] data = bigint.ToByteArray ();
if (data.Length == expectedLength + 1) {
return data.Skip (1).Take (expectedLength).ToArray ();
}
return data;
}
开发者ID:lukedoolittle,项目名称:telehash.net,代码行数:8,代码来源:Helpers.cs
示例11: CodelistExporter
public CodelistExporter(string code,Org.Sdmxsource.Sdmx.Api.Model.Objects.Codelist.ICodelistObject codelist)
{
_codelist = codelist;
_code = code;
_xmlDoc = null;
_dataFilename = string.Empty;
_dataView = null;
}
开发者ID:alcardac,项目名称:SDMX_BUILD_LOAD,代码行数:8,代码来源:Exporter.cs
示例12: AddOrg
public int AddOrg(string orgCode)
{
CQGJModel.Org org = new Org();
org.OrgCode = orgCode;
cqgj.AddToOrg(org);
cqgj.SaveChanges();
return org.OrgID;
}
开发者ID:dalinhuang,项目名称:cqgj,代码行数:8,代码来源:CQGJWebServices.asmx.cs
示例13: CanLoad
public bool CanLoad(Org.Reddragonit.Stringtemplate.Tokenizers.Token token)
{
foreach(char c in _reserved)
{
if (token.Content.Contains(c.ToString()))
return false;
}
return true;
}
开发者ID:marquismark,项目名称:stringtemplate,代码行数:9,代码来源:ParameterComponent.cs
示例14: Serialize
public static void Serialize(string fileName, Org.Apache.REEF.Tang.Implementations.InjectionPlan.InjectionPlan ip)
{
Org.Apache.REEF.Tang.Protobuf.InjectionPlan plan = Serialize(ip);
using (var file = File.Create(fileName))
{
Serializer.Serialize<Org.Apache.REEF.Tang.Protobuf.InjectionPlan>(file, plan);
}
}
开发者ID:kijungs,项目名称:incubator-reef,代码行数:9,代码来源:ProtocolBufferInjectionPlan.cs
示例15: ComponentObjectBaseCore
public ComponentObjectBaseCore(Org.Sdmxsource.Sdmx.Api.Model.Objects.Base.IComponent componentBean,
ICodelistObjectBase codeListBean1, IConceptObjectBase conceptSuperBean2) : base(componentBean) {
this.Icomponent = componentBean;
this.Icodelist = codeListBean1;
if (codeListBean1 == null) {
this.Icodelist = conceptSuperBean2.CoreRepresentation;
}
this.IconceptSuper = conceptSuperBean2;
}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:9,代码来源:ComponentSuperBeanImpl.cs
示例16: WritePkcs12
public static void WritePkcs12(RsaPrivateCrtKeyParameters privKey, Org.BouncyCastle.X509.X509Certificate certificate,
string password, Stream stream)
{
Pkcs12Store store = new Pkcs12Store();
X509CertificateEntry[] chain = new X509CertificateEntry[1];
chain[0] = new X509CertificateEntry(certificate);
store.SetKeyEntry("privateKey", new AsymmetricKeyEntry(privKey), chain);
store.Save(stream, password.ToCharArray(), new SecureRandom());
}
开发者ID:maugsan,项目名称:dcfd-mw-applet,代码行数:9,代码来源:KeyStoreUtil.cs
示例17: OrgModel
public OrgModel(Org org)
{
_org = org;
Id = org.Id;
Name = org.Name;
Remark = org.Remarks;
Roles = org.GetAllRoles().ToArray();
Parent = org.Parent;
}
开发者ID:luqizheng,项目名称:OrnamentFramework,代码行数:9,代码来源:OrgModel.cs
示例18: CanProcessRequest
public bool CanProcessRequest(HttpRequest request, Org.Reddragonit.EmbeddedWebServer.Interfaces.Site site)
{
return request.URL.AbsolutePath == "/resources/scripts/core.js"
|| request.URL.AbsolutePath == "/resources/scripts/setup.js"
|| request.URL.AbsolutePath == "/resources/scripts/user.js"
|| request.URL.AbsolutePath == "/resources/styles/core.css"
|| request.URL.AbsolutePath == "/resources/styles/setup.css"
|| request.URL.AbsolutePath == "/resources/styles/user.css";
}
开发者ID:marquismark,项目名称:freeswitchconfig,代码行数:9,代码来源:CoreJSCSSHandler.cs
示例19: ItemCore
///////////////////////////////////////////////////////////////////////////////////////////////////
////////////BUILD FROM V1 SCHEMA //////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
public ItemCore(
XmlObject createdFrom,
SdmxStructureType structureType,
String id,
String uri,
IList<Org.Sdmx.Resources.SdmxMl.Schemas.V10.Common.TextType> name,
IList<Org.Sdmx.Resources.SdmxMl.Schemas.V10.Common.TextType> description,
Org.Sdmx.Resources.SdmxMl.Schemas.V10.Common.AnnotationsType annotationsType,
IIdentifiableObject parent) {
}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:13,代码来源:ItemBeanImpl.cs
示例20: Execute
public void Execute()
{
SmartBox.Console.Common.Log4NetHelper.Info("同步统一授权组织机构开始!");
if (arr != null && arr.Length > 0)
{
topOrg = orgService.GetTopOrg();
SyncOrg(topOrg);
}
System.Console.WriteLine("bua单位同步完成!");
SmartBox.Console.Common.Log4NetHelper.Info("同步统一授权组织机构结束!");
}
开发者ID:xiachanghao,项目名称:SmartBoxConsole,代码行数:11,代码来源:SyncBUAUnitTask.cs
注:本文中的Org类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论