|
Try Select "Sent Items" or Select "Inbox.Sent Items".
|
|
|
|
|
Pete,
Thanks for the suggestion, however it is not working.
I am using select command to select "Sent Items" folder as follows.
'Select Sent Items'
But IMAP responds with failure response which means that the command is not valid for sent Items, but it works fine for INBOX. The space in the word creates the problem..(sent ' ' items)
How can we overcome this problem?
-Sivasankari
|
|
|
|
|
Well, I've used this command through a console application Select "Inbox.Sent Items" and this worked fine for me.
|
|
|
|
|
Wierd, could you please send your application/code snippet in which "Inbox.Sent Items" selects the 'sent items' folder if possible?
I have written "Select Inbox.Sent Items" command in network stream.
Thanks for all ur replies.
|
|
|
|
|
Hi,
I am the same user that post the original post - "Object Consistency". (now logged with my real user name). again please excuse me for my english
Thanks all of you guys , all of your posts are very informative, but i will sharp my question.
i will introduce you into my original problem from my real project.
there is a IRentable interface that represents any real life object that can be rent.
concrete rentable items like car, motocycle, or book are inherit from it.
there is also an abstract class RentProgram that describes the rules of renting
an item. for each particular rent item there is concrete rent program like MotocycleRentProgram,
all of them are inherit from RentProgram.
in addition there is an abstract class Order that contains among all others a rent item (IRentable)
and a rent program (RentProgram). for each concrete rentable item there are some specific properties
that will be exist in concrete class inheriting from Order like CarOrder.
for example when real car is returned without full fueltank, a penalty must be taken.
a cost for that penalty (fuelTankPenaltyCost) is a property of CarRentProgram, on the other hand
a status of car's fueltank (isFuelTankFull) is a part of CarOrder object end assigned by car operator
when the order is finalized.
my question is very specific. how you can ensure that every concrete order like CarOrder, MotocycleOrder and etc
will be consistent. i mean how you can ensure for example that object of type CarOrder will only contains Cars in it's
IRentable variable and only CarRentProgram in it's RentProgram variable.
that constraint must be applied for each relation of objects of the same group:
[concrete order] - [concrete rent item] - [concrete rent program]
for example:
[CarOrder] - [Car] - [CarRentProgram]
[MotocycleOrder] - [Motocycle] - [MotocycleRentProgram]
[BookOrder] - [Book] - [BookRentProgram]
assume that every concrete order can be updated over time so the constraint must be kept also
after updating methods of Order class like UpdateRentProgram(RentProgram rentProgram).
here is the class structure to complement my question:
thanks in advance
abstract class Order<br />
{<br />
protected Custumer custumer;<br />
<br />
protected DateTime deliveryDate;<br />
protected DateTime returnDate; <br />
protected Office deliveryOffice;<br />
protected Office returnOffice;<br />
protected DateTime realReturnDate;<br />
protected Office realReturnOffice;<br />
<br />
protected IRentable rentableItem;<br />
protected RentProgram rentProgram;<br />
<br />
protected List<payment> payments;<br />
<br />
protected double damageCost;<br />
protected String damageComments;<br />
<br />
protected bool isFiniliezed = false;<br />
<br />
...<br />
}<br />
<br />
abstract class RentProgram<br />
{<br />
public abstract double CalculateCost(Order order);<br />
<br />
...<br />
}<br />
<br />
class CarOrder : Order<br />
{<br />
protected double kilometers;<br />
protected bool isFuelTankFull;<br />
<br />
...<br />
}<br />
<br />
class MotocycleOrder : Order<br />
{<br />
protected double kilometers; <br />
protected bool isAlarmPresent;<br />
...<br />
}<br />
<br />
<br />
class Car : IRentable<br />
{<br />
protected int id;<br />
protected CarClass carClass;<br />
protected double kilometers;<br />
protected String name; <br />
<br />
...<br />
}<br />
<br />
class Motocycle : IRentable<br />
{<br />
protected int id; <br />
protected String name;<br />
protected double kilometers;<br />
<br />
...<br />
}<br />
<br />
<br />
class CarRentProgram : RentProgram<br />
{ <br />
protected CostDescriptor costPerKilometer;<br />
protected CostDescriptor costPerTime;<br />
protected double insuranceCost;<br />
protected double fuelTankPenaltyCost;<br />
protected double dropChargeCost;<br />
<br />
...<br />
}<br />
<br />
class MotocycleRentProgram : RentProgram<br />
{<br />
protected CostDescriptor costPerTime;<br />
protected double gadgetsCost;<br />
protected double alarmDeviceCost; <br />
<br />
...<br />
}</payment>
|
|
|
|
|
I would look at making Order a generic class with a type of IRentable. Hence, you would end up
withpublic class CarOrder : Order<Car>
{
}
public class MotorCycleOrder : Order<MotorCycle>
{
}
public abstract class Order<T> where T : IRentable
{
protected T rentableItem;
}
|
|
|
|
|
Great idea but it is not sufficient. If i understand you right then in order to force consistency
between Order, IRentable and RentProgram types there shuld be more complicated generic use:
withpublic class CarOrder : Order<Car, CarRentProgram><br />
{<br />
}<br />
<br />
public class MotorCycleOrder : Order<motorcycle, MotocycleRentProgram><br />
{<br />
}<br />
<br />
public abstract class Order<T, S> where T : IRentable, S : RentProgram <br />
{<br />
protected T rentableItem;<br />
protected S rentProgram;<br />
}<br />
Am i right ???
modified on Thursday, March 27, 2008 8:39 AM
|
|
|
|
|
This would seem to be reasonable.
|
|
|
|
|
hi guys
im developing a Biztalk 2006 application
im using microsoft enterprise Enterprise assemblies and other assemblis that i dont have the code -delayd signed assembles-
so how can re-assign the assemblies whethere i have the sorce key and the snk file or i don't have them.
thanks
ahmad dalqamouny
|
|
|
|
|
Please don't double-post. It won't help you get an answer any faster. The original is here[^].
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
hi guys
im developing a Biztalk 2006 application
im using microsoft enterprise Enterprise assemblies and other assemblis that i dont have the code -delayd signed assembles-
so how can re-assign the assemblies whethere i have the sorce key and the snk file or i don't have them.
thanks
|
|
|
|
|
I have a project requirement where the exe is written in c++ (Vs 2005) and I need it to link to a .net library. I managed to get the c++ code to link and call the .net code but I can't figure out how to raise an event in the DLL back to the exe. Alternately i can pass a callback to the dll and execute it if possible - any idea how to do that?
basically, something like this
c++ exe loads .net dll
exe calls a function in the dll
dll draws a GUI and sets up a button on it
when the button is pressed, the dll should callback to a function in the exe to do something.
Thanks!
|
|
|
|
|
shuttle? I advise against making up your own terminology. There is already way to much and people won't know what you are talking about.
FiddlerMD wrote: I can't figure out how to raise an event in the DLL back to the exe.
Look at the documentation for the event type in the .NET Platform. You just add one in a class that is in the DLL and the EXE managed code can subscribe to it. There's more to than that but the documentation will explain it all.
led mike
|
|
|
|
|
Hi,
Got a quick question. Could someone shed some light on approximately how many .NET Framework class libraries there are? I understand that there are hundreds of class libraries out there, but I was wondering if the experts out here could give me a better number, if known.
Thanks!
|
|
|
|
|
JBAK_CP wrote: I understand that there are hundreds of class libraries out there
You do? Could you explain it to me? What are you talking about? Every .NET Class Library project type ever produced? Do I count the ones I have compiled here on my workstation? The ones you have compiled on your workstation?
I'm going with 7, it's divine.
led mike
|
|
|
|
|
|
JBAK_CP wrote: it talks about .NET Framework containing hundres of classes, that is what I was refering to
Your original post never uses the word "class". Since I left my crystal ball at home today I had no chance of knowing what you were talking about.
JBAK_CP wrote: I was wondering if the experts out here could give me a better number, if known.
Well since the Base Class Library is documented the number is certainly known. Why you think you need an expert to tell you the number when it is fully documented is somewhat confusing. Another point of confusion is the significance of the number.
led mike
|
|
|
|
|
Is this[^] what you're looking for?
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Holy cow!
1.0 was just a cute little set of classes
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I have implemented Aspects(in C#, ContextBoundObject) on my business class to trace the calls. The problem is, it is tracing only the first call to the business class. The other helper methods and the validation methods in the same class(part of the same business method) are not getting logged.
How to trace all internal methods if they are in the same class
|
|
|
|
|
In my WCF client code I'm trying to sign the soap body with client certificate but can't get it to work.
Only some parts of the soap header (e.g. TimeStamp) gets signed but the body never will.
I've tried basicHttpBinding, wsHttpBinding and customBinding but everything fails.
Here's my wsHttpBinding:
<wsHttpBinding>
<binding name="testBinding2" textEncoding="utf-8">
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None" />
<message clientCredentialType="Certificate" negotiateServiceCredential="false"
algorithmSuite="Default" establishSecurityContext="false" />
</security>
</binding>
</wsHttpBinding>
Then I've tried custom binding:
<customBinding>
<binding name="testBinding">
<textMessageEncoding messageVersion="Soap11" />
<security defaultAlgorithmSuite="Default" authenticationMode="CertificateOverTransport"
requireDerivedKeys="false" securityHeaderLayout="Strict" includeTimestamp="true"
keyEntropyMode="CombinedEntropy" messageProtectionOrder="SignBeforeEncrypt"
messageSecurityVersion="WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"
requireSecurityContextCancellation="false">
<secureConversationBootstrap />
</security>
<httpsTransport />
</binding>
</customBinding>
Any ideas?
Thanks in advance.
|
|
|
|
|
Did you ever resolve this problem, Konkola? I have been working on an identical problem for the past 3 weeks with no success.
I have been told it is possible to do this with WSE 2.0, but I really don't want to go back to Visual Studio 2003 to build my solution.
|
|
|
|
|
hi Mr Mundial, did you ever get this resolved, I'm facing same issue.
|
|
|
|
|
Yes, I did. I had to modify the contract description in code, not the binding in the configuration file.
The following code did what I wanted.
proxy = new OperationsClient(endpoint);
ContractDescription cd = proxy.Endpoint.Contract;
cd.ProtectionLevel = System.Net.Security.ProtectionLevel.Sign;
|
|
|
|
|
Hi all,
first exuse me please for my english, it is not a native.
here is my question :
say you have some class hierarchy
abstract class Warior<br />
{<br />
String Description;<br />
Armor armor;<br />
Weapon weapon;<br />
<br />
<br />
<br />
}<br />
<br />
class HumanWarior : Warior<br />
{<br />
<br />
}<br />
<br />
class AlienWarior : Warior<br />
{<br />
<br />
}<br />
<br />
class GenericWarior : Warior<br />
{<br />
<br />
}<br />
<br />
<br />
abstract class Armor<br />
{<br />
<br />
}<br />
<br />
abstract class Weapon<br />
{<br />
<br />
}<br />
<br />
<br />
class AlienArmor : Armor<br />
{<br />
<br />
}<br />
<br />
class AlienWeapon : Weapon<br />
{<br />
<br />
}<br />
<br />
class HumanArmor : Armor<br />
{<br />
<br />
}<br />
<br />
class HumanWeapon : Weapon<br />
{<br />
<br />
}
Given that hierarchy there can be many different objects of HumanWorior or AlienWorier type.
Everyone of them can contain Armor and Weapon objects of two presented concrate types.
the problem is that not all of the posible combinations are logicaly true. for example
HumanWorior can't contain AlienArmor or AlienWeapon. Also GenericWarior can contain both types
of Armor and Weapon but not two of them togather. For example GenericWarior can't contain
AlienArmor with HumanWorior.
How can you ensure that all the objects of type HumanWorior, AlienWorior or GenericWorior will be consistent during their entire lifetime cycle. How can you enforce a creation of logicaly corrected objectes only and mantain their correct state later on, according to defined set of
rules like: HumanWorior will contain only human devices.
here some code examples:
HumanArmor letherArmor = new HumanArmor();<br />
HumanWeapon longBow = new HumanWeapon();<br />
AlienWeapon plasmaPistol = new AlienWeapon(); <br />
AlienArmor MagneticShild = new AlienArmor();<br />
<br />
HumanWorior humanWorior = new HumanWorior("Bob", letherArmor, longBow);<br />
humanWorior.Weapon = plasmaPistol;
<br />
<br />
GenericWorior genWorior1 = new GenericWorior("SuperMan", letherArmor, longBow);
GenericWorior genWorior2 = new GenericWorior("SuperMan", MagneticShild, plasmaPistol);
GenericWorior genWorior3 = new GenericWorior("SuperMan", MagneticShild, longBow);
i guess there is a solution at runtime with throwing an exeption but
if there a solution early at compile time for that problem.
thnx in advance.
|
|
|
|