public OperationDescriptor(System.ServiceModel.OperationContractAttribute op) { this.Name = op.Name; this.IsOneway = op.IsOneWay; this.Action = op.Action ?? Name; this.ReplyAction = op.ReplyAction ?? $"{Action}Reply"; }
public void OperationContract_create_defaultsAreEqual() { NDceRpc.ServiceModel.OperationContractAttribute my = new NDceRpc.ServiceModel.OperationContractAttribute(); System.ServiceModel.OperationContractAttribute wcf = new System.ServiceModel.OperationContractAttribute(); Assert.AreEqual(my.Action, wcf.Action); Assert.AreEqual(my.AsyncPattern, wcf.AsyncPattern); Assert.AreEqual(my.HasProtectionLevel, wcf.HasProtectionLevel); Assert.AreEqual(my.IsInitiating, wcf.IsInitiating); Assert.AreEqual(my.IsOneWay, wcf.IsOneWay); Assert.AreEqual(my.IsTerminating, wcf.IsTerminating); Assert.AreEqual(my.Name, wcf.Name); Assert.AreEqual(my.ProtectionLevel, wcf.ProtectionLevel); Assert.AreEqual(my.ReplyAction, wcf.ReplyAction); }
public void OperationContract_create_defaultsAreEqual() { NDceRpc.ServiceModel.OperationContractAttribute my = new NDceRpc.ServiceModel.OperationContractAttribute(); System.ServiceModel.OperationContractAttribute wcf = new System.ServiceModel.OperationContractAttribute(); Assert.AreEqual(my.Action, wcf.Action); Assert.AreEqual(my.AsyncPattern, wcf.AsyncPattern); Assert.AreEqual(my.HasProtectionLevel, wcf.HasProtectionLevel); Assert.AreEqual(my.IsInitiating, wcf.IsInitiating); Assert.AreEqual(my.IsOneWay, wcf.IsOneWay); Assert.AreEqual(my.IsTerminating, wcf.IsTerminating); Assert.AreEqual(my.Name, wcf.Name); Assert.AreEqual(my.ProtectionLevel, wcf.ProtectionLevel); Assert.AreEqual(my.ReplyAction, wcf.ReplyAction); }